[BangPypers] Django connection problem

VIJAY KUMAR vnbang2003 at yahoo.com
Tue Jun 23 05:50:04 CEST 2009


Hi,
           Am pressently using sqlite .
           The problem is in the django\db\__init__.py where it is importing connection module
            from django.db import connection


 

Thanks
Vijay 


--- On Mon, 22/6/09, Gora Mohanty <gora at srijan.in> wrote:


From: Gora Mohanty <gora at srijan.in>
Subject: Re: [BangPypers] Django connection problem
To: bangpypers at python.org
Date: Monday, 22 June, 2009, 9:49 PM


On Mon, 22 Jun 2009 19:14:21 +0530 (IST)
VIJAY KUMAR <vnbang2003 at yahoo.com> wrote:

> Hi 
>        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?

Regards,
Gora
_______________________________________________
BangPypers mailing list
BangPypers at python.org
http://mail.python.org/mailman/listinfo/bangpypers



      ICC World Twenty20 England &#39;09 exclusively on YAHOO! CRICKET http://cricket.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/bangpypers/attachments/20090623/f181dc57/attachment.htm>


More information about the BangPypers mailing list