> I am new in Python and Django. This is my first test project following the
> site :
> https://docs.djangoproject.com/en/1.3/intro/tutorial01/ >
> I am using database MySQL.
> I configured in
> INSTALLED_APPS = (
> After that I am trying to run :
> python manage.py sql polls
> But I am getting this error :
> App with label polls could not be found. Are you sure your
> > INSTALLED_APPS setting is correct?
The docs recommend that you add
with a final comma, but that's only to prevent you from errors if you
add more apps at the end: it should work without the comma if 'polls' is
the final element of the tuple. Nevertheless, you probably want to make
it a habit to add the comma (which btw is necessary for a one-element
tuple - not the case here, but forewarned is forearmed).
Do an ``ls'' in the directory where you do the ``python manage.py sql
polls'': do you have a subdirectory named `polls' with the standard
structure? Below, I have named the project `poll' and the app `polls'
(which is a bit confusing, sorry: I should have named the project
`poll_project' or something). Here's what I get: