Writing your first Django app, part 1

243 views
Skip to first unread message

Larry Barnett

unread,
Nov 20, 2013, 1:39:14 PM11/20/13
to django...@googlegroups.com
In the tutorial after I enter:

python manage.py sql polls
I get the following error:

CommandError: App with label polls could not be found. Are you sure your INSTALLED_APPS setting is correct?

I have built the site twice with the same results.  I cannot locate any error in the example or the Django environment. Everything worked prior to the attempt to include the app. Any ideas?

Jonathan Baker

unread,
Nov 20, 2013, 1:46:31 PM11/20/13
to django...@googlegroups.com
Is "polls" listed in within INSTALLED_APPS of settings.py? If so, does your polls app have an __init__.py file?


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/acbd9f55-f2f7-4b94-beb3-4dc7167fa8e8%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Jonathan D. Baker
Developer
http://jonathandbaker.com

Larry Barnett

unread,
Nov 20, 2013, 2:05:23 PM11/20/13
to django...@googlegroups.com
Found it.  I had Polls in the wrong place in the settings file.

Thanks!
Reply all
Reply to author
Forward
0 new messages