Fang-of-Mongo
Fang-of-Mongo copied to clipboard
ImproperlyConfigured at /fangofmongo/
Im new at this, although it looks like some important information is not set in the install file: Probably this could be fixed using the settings.py but no guide can be found for the fang of mongo. Please Help,
Environment:
Request Method: GET Request URL: http://localhost:8000/fangofmongo/
Django Version: 1.4 Python Version: 2.6.5 Installed Applications: ('django.contrib.contenttypes', 'fangofmongo.fom') Installed Middleware: ()
Traceback: File "/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/core/handlers/base.py" in get_response
-
File "/home/hmarrao/Programas/Fiedzia-Fang-of-Mongo-444fc22/fangofmongo/fom/views.py" in start_pageresponse = callback(request, _callback_args, *_callback_kwargs)
-
File "/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/shortcuts/init.py" in render_to_responsereturn render_to_response('fom/templates/start_page.html', {})
-
File "/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/template/loader.py" in render_to_stringreturn HttpResponse(loader.render_to_string(_args, *_kwargs), **httpresponse_kwargs)
-
File "/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/template/loader.py" in get_templatet = get_template(template_name)
-
File "/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/template/loader.py" in find_templatetemplate, origin = find_template(template_name)
-
File "/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/template/loader.py" in find_template_loaderloader = find_template_loader(loader_name)
-
raise ImproperlyConfigured('Error importing template source loader %s: "%s"' % (loader, e))
Exception Type: ImproperlyConfigured at /fangofmongo/ Exception Value: Error importing template source loader django.template.loaders.filesystem.load_template_source: "'module' object has no attribute 'load_template_source'"
Me too
in fangofmongo/settings.py replace
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.load_template_source',
'django.template.loaders.app_directories.load_template_source',
# 'django.template.loaders.eggs.load_template_source',
)
with
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
# 'django.template.loaders.eggs.load_template_source',
)
But if you are also using latest pymongo you will need to handle that json_util and binary are moved in bson module.