Newbie Mistake Question
Hi all,
Just starting out with the tutorial 1 and ran into what I hope is a
minor mistake. I've got my site setup to a Postgresql database and
was running through the tutorial without any problems until I got to
the step where you create your models and then activate them.
The models you start off creating in the tutorial are the poll and
Choice ones. Then after creating those you edit your site root
settings.py file and and the polls app at the bottom of the app list
like so:
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'mysite.polls'
)
Then you run the command:
python manage.py sql polls
But I end up getting an error message that says:
"Error: No module named mysite.polls.
In an earlier step i created the app with the command:
python manage.py startapp polls
and it ran correctly and created the referenced files listed in the
tutorial.
I noticed that before adding the 'mysite.polls' line the previous line
had a comma on the end so I've tried editing the settings.py file to
have it with a command on the end of the 'mysite.polls' line and
without but still get the same error.
Is this a syntax error or has something changed since the tutorial was
written that has it missing a step?
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home