TemplateDoesNotExist

36 views
Skip to first unread message

Rashmi Ranjan Kar

unread,
May 13, 2015, 12:38:18 PM5/13/15
to django...@googlegroups.com
Hi

Please go through the attachment. It contains settings.py, urls.py and localhost:8080 page. kindly help me to solve this issue as soon as possible
python-error.jpg

Stephen J. Butler

unread,
May 13, 2015, 12:55:47 PM5/13/15
to django...@googlegroups.com
See where it says "Django tried loading these templates, in this
order"? Move your index.html template to the appropriate place.
> --
> 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...@googlegroups.com.
> To post to this group, send email to django...@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/4b739804-3913-4467-8cb9-45c1bcbb6ddf%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Tim Graham

unread,
May 13, 2015, 12:55:53 PM5/13/15
to django...@googlegroups.com
In what directory is the index.html template you expect to be loaded located?

Владимир Кубанцев

unread,
May 13, 2015, 1:36:01 PM5/13/15
to django...@googlegroups.com
Hi!

In documentation:

DIRS

Default:: [] (Empty list)

Directories where the engine should look for template source files, in search order.

So Django reads your string as a tuple and tries finds templates in each element of tuple.

Try 'DIRS' : ['cit/templates']

среда, 13 мая 2015 г., 19:38:18 UTC+3 пользователь Rashmi Ranjan Kar написал:
Reply all
Reply to author
Forward
0 new messages