Are you running that command from the interactive shell invoked by
running 'python manage.py shell'?
Invoking the interactive shell that way should set up all your python
library settings properly for your Django app.
On Apr 30, 2010, at 5:44 PM, Mark Serva <[email protected]> wrote:
I am running django 1.1.1 under ubuntu, and am going through jeff
forcier's book on django development. I have a new project called
mysite, which contains an app called blog. The problem I am having is
getting the shell to recognize mysite. I would like to query my
database and follow the examples in the book, but when I try to enter:
from mysite.blog.models import BlogPost
the shell gives me the following error:
Traceback (most recent call last):
File "<pyshell#15>", line 1, in <module>
from mysite.blog import BlogPost
ImportError: No module named mysite.blog
It seems like there is something wrong with the configuration, but I
cant pin down what it is. Many thanks for any help.
Mark
--
You received this message because you are subscribed to the Google
Groups "Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected]
.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en
.
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.