2👍
✅
Look at your TEMPLATE_DIRECTORIES setting. The template paths are relative to any of the TEMPLATE_DIRECTORIES.
If template_name
is myapp/registration_form.html
, then you should create a dir “myapp” in one of the TEMPLATE_DIRECTORIES, and put registration_form.html
in there.
To double check TEMPLATE_DIRECTORIES, run manage.py shell
and in there from django.conf import settings; print settings.TEMPLATE_DIRECTORIES
.
👤jpic
Source:stackexchange.com