python - Djangos TEMPLATE_DIRS not found -
i trying create login page in django application. created "templates" folder on root directory of application.
then on settings.py wrote code.
template_dirs = (os.path.join(base_dir,'templates'),)
and giving feedback:
templatedoesnotexist @ /login/ template-loader postmortem
django tried loading these templates, in order: using loader django.template.loaders.filesystem.loader: using loader django.template.loaders.app_directories.loader: /users/julianasakae/desktop/djangoproject/demo/lib/python3.4/site-packages/django/contrib/admin/templates/login.html (file not exist) /users/julianasakae/desktop/djangoproject/demo/lib/python3.4/site-packages/django/contrib/auth/templates/login.html (file not exist) /users/julianasakae/desktop/djangoproject/boardgames/main/templates/login.html (file not exist)
i tryed everything, not seems work.
any suggestions?
what version of django using? appears template_dirs
used prior 1.8 in current version has changed dirs
option in templates
setting.
templates = [ { 'backend': 'django.template.backends.django.djangotemplates', 'dirs': [ '/home/html/templates/lawrence.com', '/home/html/templates/default', ], }, ]