Skip to content

Instantly share code, notes, and snippets.

@felipe-prenholato
Created April 11, 2011 21:19
Show Gist options
  • Save felipe-prenholato/914368 to your computer and use it in GitHub Desktop.
Save felipe-prenholato/914368 to your computer and use it in GitHub Desktop.
(p2)felipe@PLAPSTMD142:~/projects/p2/portal$ m shell
Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_manager(settings)
File "/home/felipe/projects/p2/lib/python2.6/site-packages/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/home/felipe/projects/p2/lib/python2.6/site-packages/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/felipe/projects/p2/lib/python2.6/site-packages/django/core/management/base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/home/felipe/projects/p2/lib/python2.6/site-packages/django/core/management/base.py", line 209, in execute
translation.activate('en-us')
File "/home/felipe/projects/p2/lib/python2.6/site-packages/django/utils/translation/__init__.py", line 66, in activate
return real_activate(language)
File "/home/felipe/projects/p2/lib/python2.6/site-packages/django/utils/functional.py", line 55, in _curried
return _curried_func(*(args+moreargs), **dict(kwargs, **morekwargs))
File "/home/felipe/projects/p2/lib/python2.6/site-packages/django/utils/translation/__init__.py", line 36, in delayed_loader
return getattr(trans, real_name)(*args, **kwargs)
File "/home/felipe/projects/p2/lib/python2.6/site-packages/django/utils/translation/trans_real.py", line 193, in activate
_active[currentThread()] = translation(language)
File "/home/felipe/projects/p2/lib/python2.6/site-packages/django/utils/translation/trans_real.py", line 176, in translation
default_translation = _fetch(settings.LANGUAGE_CODE)
File "/home/felipe/projects/p2/lib/python2.6/site-packages/django/utils/translation/trans_real.py", line 159, in _fetch
app = import_module(appname)
File "/home/felipe/projects/p2/lib/python2.6/site-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/home/felipe/projects/p2/lib/python2.6/site-packages/django/contrib/admin/__init__.py", line 1, in <module>
from django.contrib.admin.helpers import ACTION_CHECKBOX_NAME
File "/home/felipe/projects/p2/lib/python2.6/site-packages/django/contrib/admin/helpers.py", line 1, in <module>
from django import forms
File "/home/felipe/projects/p2/lib/python2.6/site-packages/django/forms/__init__.py", line 17, in <module>
from models import *
File "/home/felipe/projects/p2/lib/python2.6/site-packages/django/forms/models.py", line 6, in <module>
from django.db import connections
File "/home/felipe/projects/p2/lib/python2.6/site-packages/django/db/__init__.py", line 66, in <module>
router = ConnectionRouter(settings.DATABASE_ROUTERS)
File "/home/felipe/projects/p2/lib/python2.6/site-packages/django/db/utils.py", line 113, in __init__
raise ImproperlyConfigured('Error importing database router %s: "%s"' % (klass_name, e))
django.core.exceptions.ImproperlyConfigured: Error importing database router Router: "cannot import name db"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment