Thanks a lot. My problem solved.
On Mar 14, 2:09 pm, "ScottB" <[EMAIL PROTECTED]> wrote:
> Hi Samira.
>
> On Mar 11, 11:56 am, "samira" <[EMAIL PROTECTED]> wrote:
>
> > Hi every Body, can any body help me? I want to have two folders for my
> > templates. One it for general template and other for template related
> > to member for example. How I can extend from general folder in
> > member ?
>
> Not sure if this is what you mean, but you can extend files in
> different directories.
>
> e.g.
> {% extends 'base.html' %} -- base.html in same directory
> {% extends 'subdir/base.html' %} -- base.html in a subdirectory
> {% extends '../base.html' %} -- base.html in parent directory
> {% extends '../sibling/base.html' %} -- base.html in another directory
> at the same level
>
> You could also have multiple template directories in your settings.py:
>
> TEMPLATE_DIRS = (
> '/path/to/templates',
> '/path/to/templates/member',
> )
>
> Then when you use extends, I believe Django will look in the different
> template directories to find the base. You would probably use
> different filenames e.g. base.html and member_base.html.
>
> Scott
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---