Is your project named mysite? (That is, is the parent directory of 'polls' named 'mysite'?)
-Paulo On Sat, Aug 7, 2010 at 3:20 AM, HawaiiMikeD <michael.luk...@gmail.com>wrote: > 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-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > 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 django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.