Hi! My views.py is:
from django.http import HttpResponse
from django.shortcuts import render_to_response
def hello(request):
menu_list = create_menu()
try:
return render_to_response('hello.html', locals())
except Exception, e:
return HttpResponse(e)
So it results exception: Module "django.template.loaders.filesystem" does not define a "Loader", instead of loading the hello.html.
settings.py:
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
'django.template.loaders.eggs.Loader',
)
ROOT_URLCONF = 'urls'
TEMPLATE_DIRS = ("/home/pavlok31/public_html/templates/",
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
)
Would you be so kind to suggest where can be the problem?
Thanks.