[BangPypers] Django connection problem

Praveen Kumar praveen.python.plone at gmail.com
Tue Jun 23 09:35:43 CEST 2009


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 <vnbang2003 at 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 <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<http://in.mc953.mail.yahoo.com/mc/compose?to=vnbang2003@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://in.mc953.mail.yahoo.com/mc/compose?to=BangPypers@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 at python.org
> http://mail.python.org/mailman/listinfo/bangpypers
>
>


-- 
Praveen Kumar
+91 9739854134
http://praveensunsetpoint.wordpress.com
Bangalore
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/bangpypers/attachments/20090623/8482d473/attachment.htm>


More information about the BangPypers mailing list