Monday, August 2, 2010

Re: os.path

os.path is a standard Python module, you do have it already.

Cheers

Jirka


On 02/08/2010, yalda.nasirian <yalda.nasirian@gmail.com> wrote:
> 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.
>
>

--
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.

No comments:

Post a Comment