I know that many people asked this question, but despite hard-coding the path to my template directory, I cannot get Django to find my template.
Here is the settings.py parameter
TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader',
This is the views.py file:
def static (request, feature_page):
Inside the main folder is the templates folder and the application folder. I use to place applications in the same folder as settings.py, but django 1.4 seems to have changed the default file structure.
My mistake:
TemplateDoesNotExist at /features/pricing Django tried loading these templates, in this order: Using loader django.template.loaders.filesystem.Loader: Using loader django.template.loaders.app_directories.Loader: /Library/Python/2.7/site-packages/django/contrib/auth/templates/feature_pricing.html (File does not exist)
Update:
My logs for the webpage list TEMPLATE_DIRS as ().
If I put the print statement on the settings.py page for TEMPLATE_DIRS, I get a print of TEMPLATE_DIRS accordingly ... so that TEMPLATE_DIRS is not used (what it looks like)
source share