I have a project that has a folder structure like this:

Project1 /
------Templates /
------------Base.html
------------Error.html
------App1
------------Templates /
------------------App1 /
------------------------App1.html

How can i include error.html in app1.html?

I am trying using {% include "../../../templates/error.html"%} but get
error on page rendering:

The relative path '"../../../templates/error.html"' points outside the file
hierarchy that template 'app1 / app1.html' is in.


I am totally new to django, python and programming.
Any help will be appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACTnJ003Gp27c0g82dzXnLkGcusGgnKVKwijtXZV7EvL3doVAA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to