[BangPypers] Django connection problem
gora at srijan.in
Mon Jun 22 18:19:28 CEST 2009
On Mon, 22 Jun 2009 19:14:21 +0530 (IST)
VIJAY KUMAR <vnbang2003 at yahoo.com> wrote:
> Need a help for below error.
> from django.contrib.auth.models import User
> File "c:\python26\lib\site-packages\django-1.0.2_final- py2.6.egg\django\contrib\auth\models.py", line 3, in <module>
> from django.db import models
> File "c:\python26\lib\site-packages\django-1.0.2_final-py2.6.egg\django\db\models\__init__.py", line 3, in <module>
> from django.db import connection
> ImportError: cannot import name connection
What are you doing when you get this error.
> when i looked in django.db there is no module by name connection. Can some one help to know more on this problem and how can i overcome this.
There is definitely a "connection" variable in django/db/__init.py__
which is where django/db/models/__init.py__ is importing from.
I suspect that this is some other issue, maybe a problem with
connecting to the database. What database are you using? Can
you connect to the database, using some other tool, but with
the same username/password as in Django's settings.py?
More information about the BangPypers