Dan, Thanks for the reply.

I just can not get it to work. Works just fine in same or any
directory under the dir that the .py file is in.

I played with TEMPLATE_DIRS setting without any luck, tested to the
root dir and still does not work even with "../Top.html" in the dir
under it.

On Nov 10, 4:07 am, Daniel Roseman <dan...@roseman.org.uk> wrote:
> On Nov 10, 2:32 am, Brian <martinair.ameri...@gmail.com> wrote:
>
>
>
>
>
>
>
>
>
> > Thanks for the help.
> > I'm using Python 2.5 and Django Template 1.1
>
> > I can't seem to move down then up the directory tree for inserting of
> > html files using  {% include file %} statement
>
> > Sample dir structure:
> > root/
> > root/lib/
> > root/lib/Top.html
> > root/main/
> > root/main/include/HomeLogo.html
> > root/main/HOME.html
>
> > Inside HOME.html I can use {% include "/include/HomeLogo.html" %} =
> > Works just fine to any where up the tree.
> > BUT
> > I can not find a way to include the top.html file in home.html.
> > I tried {% include "/lib/Top.html" %}, {% include "lib/Top.html" %} ,
> > {% include "../lib/Top.html" %}, {% include "./lib/Top.html" %}
> > can not find a way to insert the html in.
> > Thanks again.
>
> You can't include files in directories that are not in your template
> path. If you need to include templates in both lib and main, either
> include both directories in your TEMPLATE_DIRS setting, or include the
> parent directory (root) and refer to them as "main/include/
> HomeLogo.html" and "lib/Top.html".
> --
> DR.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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