Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImproperlyConfigured at /fangofmongo/ #16

Open
hmarrao opened this issue Mar 28, 2012 · 2 comments
Open

ImproperlyConfigured at /fangofmongo/ #16

hmarrao opened this issue Mar 28, 2012 · 2 comments

Comments

@hmarrao
Copy link

hmarrao commented Mar 28, 2012

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'"

@bitliner
Copy link

Me too

@tsachev
Copy link

tsachev commented May 28, 2012

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants