Hi, it seems there is something wrong in your django installation.. you can check with import django and try with django shell.<br><br>Thanks<br>Praveen<br><br><div class="gmail_quote">On Tue, Jun 23, 2009 at 9:20 AM, VIJAY KUMAR <span dir="ltr">&lt;<a href="mailto:vnbang2003@yahoo.com">vnbang2003@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">
<div>Hi,</div>
<div>           Am pressently using sqlite .</div>
<div>           The problem is in the django\db\__init__.py where it is importing connection module</div><div class="im">
<div>            from django.db import connection</div>
<div><br><br> </div>
<div></div>
</div><div style="color: rgb(0, 0, 0); font-family: arial;">Thanks</div>
<div style="color: rgb(0, 0, 0); font-family: arial;">Vijay </div><br><br><br>--- On <b>Mon, 22/6/09, Gora Mohanty <i>&lt;<a href="mailto:gora@srijan.in" target="_blank">gora@srijan.in</a>&gt;</i></b> wrote:<br>
<blockquote style="border-left: 2px solid rgb(16, 16, 255); padding-left: 5px; margin-left: 5px;"><br>From: Gora Mohanty &lt;<a href="mailto:gora@srijan.in" target="_blank">gora@srijan.in</a>&gt;<br>Subject: Re: [BangPypers] Django connection problem<br>
To: <a href="mailto:bangpypers@python.org" target="_blank">bangpypers@python.org</a><br>Date: Monday, 22 June, 2009, 9:49 PM<div><div></div><div class="h5"><br><br>
<div>On Mon, 22 Jun 2009 19:14:21 +0530 (IST)<br>VIJAY KUMAR &lt;<a href="http://in.mc953.mail.yahoo.com/mc/compose?to=vnbang2003@yahoo.com" target="_blank">vnbang2003@yahoo.com</a>&gt; wrote:<br><br>&gt; Hi <br>&gt;        Need a help for below error.<br>
&gt;            from django.contrib.auth.models import User<br>&gt;               File &quot;c:\python26\lib\site-packages\django-1.0.2_final-       py2.6.egg\django\contrib\auth\models.py&quot;, line 3, in &lt;module&gt;<br>
&gt;            from django.db import models<br>&gt;             File &quot;c:\python26\lib\site-packages\django-1.0.2_final-py2.6.egg\django\db\models\__init__.py&quot;, line 3, in
 &lt;module&gt;<br>&gt;             from django.db import connection<br>&gt;          ImportError: cannot import name connection<br><br>What are you doing when you get this error.<br><br>&gt;  <br>&gt;   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.<br>
[...]<br><br>There is definitely a &quot;connection&quot; variable in django/db/__init.py__<br>which is where django/db/models/__init.py__ is importing from.<br><br>I suspect that this is some other issue, maybe a problem with<br>
connecting to the database. What database are you using? Can<br>you connect to the database, using some other tool, but with<br>the same username/password as in Django&#39;s settings.py?<br><br>Regards,<br>Gora<br>_______________________________________________<br>
BangPypers mailing list<br><a href="http://in.mc953.mail.yahoo.com/mc/compose?to=BangPypers@python.org" target="_blank">BangPypers@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/bangpypers" target="_blank">http://mail.python.org/mailman/listinfo/bangpypers</a><br>
</div></div></div></blockquote></td></tr></tbody></table><br>
      <hr size="1"> Cricket on your mind? Visit the ultimate cricket website. <a href="http://in.rd.yahoo.com/tagline_cricket_1/*http://cricket.yahoo.com" target="_blank"> Enter now!</a><br>_______________________________________________<br>

BangPypers mailing list<br>
<a href="mailto:BangPypers@python.org">BangPypers@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/bangpypers" target="_blank">http://mail.python.org/mailman/listinfo/bangpypers</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Praveen Kumar<br>+91 9739854134<br><a href="http://praveensunsetpoint.wordpress.com">http://praveensunsetpoint.wordpress.com</a><br>Bangalore<br>