Hi, it seems there is something wrong in your django installation.. you can check with import django and try with django shell.
Thanks Praveen On Tue, Jun 23, 2009 at 9:20 AM, VIJAY KUMAR <vnbang2...@yahoo.com> wrote: > 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 <g...@srijan.in>* wrote: > > > From: Gora Mohanty <g...@srijan.in> > Subject: Re: [BangPypers] Django connection problem > To: bangpypers@python.org > Date: Monday, 22 June, 2009, 9:49 PM > > > On Mon, 22 Jun 2009 19:14:21 +0530 (IST) > VIJAY KUMAR > <vnbang2...@yahoo.com<http://in.mc953.mail.yahoo.com/mc/compose?to=vnbang2...@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@python.org<http://in.mc953.mail.yahoo.com/mc/compose?to=bangpyp...@python.org> > http://mail.python.org/mailman/listinfo/bangpypers > > > ------------------------------ > Cricket on your mind? Visit the ultimate cricket website. Enter > now!<http://in.rd.yahoo.com/tagline_cricket_1/*http://cricket.yahoo.com> > _______________________________________________ > BangPypers mailing list > BangPypers@python.org > http://mail.python.org/mailman/listinfo/bangpypers > > -- Praveen Kumar +91 9739854134 http://praveensunsetpoint.wordpress.com Bangalore
_______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers