python - Django Template does not exist error, although it shows 'file exists' -


I'm not able to present any HTML pages in Django 1.7. My 'index.html' is in the " project / seatalloc / templates / index.html and in my view.py project / seatalloc / views.py looks like this: <

project / project / DEF index (request): return submission (request, 'index.html', dirs = ('templates', ) Settings are set to the following set of templates:

  TEMPLATE_DIRS = ('/ user / spinach / desktop / academic / cm3 / cs251 / lab11 / project / seahawalk / template') < / Code> 

urls.py:

  urlpatterns = pattern ('', url (r) Include '^ cietalloc /', ('sitelock.org'), url (r '^ admin /', include (admin.site.urls)),  

< Img src = "https://i.stack.imgur.com/FOm9Y.png" alt = "template loader">

I have tried to follow the document strictly, still understand it Can not find the Django file that detects, why am I getting TemplateDoesNotExist / seatalloc / error? I'm new to Django, please help someone.

If - in your case - you have the TemplateDoesNotExist error and debug page in the form of the "file exists" question Is next to the template in, usually (always?) Means that this template can be referred to another template.

In your case, there is a statement in the index HTML ( {% extends%}, {% include%}, ... ) referring to another template, Django can not be found Could. Unfortunately, as DjGau 1.8.3, the debug page always retains the base template name, can not find a Django.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -