django - TemplateDoesNotExist at /website/, extended template -


sorry if question not written or anything, first time posting here. so, i'm trying django , tries use generic templates of django. create parent template named "layout.html". has 3 blocks, created child extended "layout.html", check files :

layout.html :

<!doctype html> <head>     <link rel="stylesheet" href="style.css" />     <title>{% block title %}bleh bleh{% endblock %}</title> </head> 

etc...

index.html :

{% extends "layout.html" %}  {% block title %} amazing index !!!{% endblock %} 

etc...

these 2 files in same folder. but, here error :

templatedoesnotexist @ /rubriques/ 

(yes, rubriques namespace)

here sample of error :

request url:    http://127.0.0.1:8000/rubriques/ django version:     1.5.1 exception type:     templatedoesnotexist exception value:      layout.html  exception location:     /home/thomas/.virtualenvs/site/local/lib/python2.7/site-packages/django/template/loader.py in find_template, line 139 python executable:  /home/thomas/.virtualenvs/site/bin/python python version:     2.7.4   error during template rendering  in template /home/thomas/projets/siteonglets/rubriques/templates/rubriques/index.html, error @ line 1 

i hope can me, don't see error comes !

you need change templates_dir in settings.py.

that way django know templates are.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -