I know nothing, but here's what I did:

python manage.py shell
import os
from settings import TEMPLATE_DIRS
for x in TEMPLATE_DIRS:
  print x
  os.listdir(x)

It gave me a list of the files in the (each) template directory.

It looks like you already have a list of template directories in settings.py.

On Feb 10, 2012, at 4:51 PM, Patrick Wellever wrote:

> Thanks -- you must be on your way out the door now so I won't call, but 
> according to your area code it looks like we might be neighbors. ;) So 
> following the syntax I wrote out, what I still need to know is how do I get 
> to EVERY_DIRECTORY_DJANGO_LOOKS_FOR_TEMPLATES_IN. That's a variable that 
> represents wishful thinking on my part -- I don't actually know how to get an 
> iterable list of those directories.
> 
> There must be some way I can sort of hook into the logic Django uses to 
> construct a list of template directories...
> 
> - P
> 
> 
> On Fri, Feb 10, 2012 at 4:33 PM, Python_Junkie 
> <software.buy.des...@gmail.com> wrote:
> I think you have it with the syntax you just wrote down.
> 
> I will be available by phone until 4:45 if you want to call.
> 
> 781-...
> 
> On Feb 10, 4:19 pm, Patrick Wellever <pwelle...@gmail.com> wrote:
> >
> > I need something like:
> >
> > template_files = []
> > for dir in EVERY_DIRECTORY_DJANGO_LOOKS_FOR_TEMPLATES_IN:
> >     template_files.extend(os.listdir(dir))
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to