Fang-of-Mongo icon indicating copy to clipboard operation
Fang-of-Mongo copied to clipboard

ImproperlyConfigured at /fangofmongo/

Open hmarrao opened this issue 12 years ago • 2 comments

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

  1.                     response = callback(request, _callback_args, *_callback_kwargs)
    
    File "/home/hmarrao/Programas/Fiedzia-Fang-of-Mongo-444fc22/fangofmongo/fom/views.py" in start_page
  2. return render_to_response('fom/templates/start_page.html', {})
    
    File "/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/shortcuts/init.py" in render_to_response
  3. return 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 render_to_string
  4.     t = get_template(template_name)
    
    File "/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/template/loader.py" in get_template
  5. template, 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
  6.         loader = find_template_loader(loader_name)
    
    File "/usr/local/lib/python2.6/dist-packages/Django-1.4-py2.6.egg/django/template/loader.py" in find_template_loader
  7.         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'"

hmarrao avatar Mar 28 '12 10:03 hmarrao

Me too

bitliner avatar Apr 23 '12 22:04 bitliner

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.

tsachev avatar May 28 '12 10:05 tsachev