Sunday, August 1, 2010

os.path

hi

note

If you want to be a bit more flexible and decoupled, though, you can
take advantage of the fact that Django settings files are just Python
code by constructing the contents of TEMPLATE_DIRS dynamically, for
example:

import os.path

TEMPLATE_DIRS = (
os.path.join(os.path.dirname(__file__), 'templates').replace('\
\','/'),
)

where is my is.path ? how can i get it ?

tanx friends

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate