Hi, at the ''python manage.py sql polls'' step of the
[http://www.djangoproject.com/documentation/tutorial1/ poll tutorial] I
get a syntax error:
{{{
[EMAIL PROTECTED]:~/code/djtutor$ python manage.py sql polls
Traceback (most recent call last):
File "manage.py", line 11, in ?
execute_manager(settings)
File "/usr/lib/python2.4/site-packages/django/core/management.py",
line 1051, in execute_manager
execute_from_command_line(action_mapping)
File "/usr/lib/python2.4/site-packages/django/core/management.py",
line 1017, in execute_from_command_line
mod_list = [meta.get_app(app_label) for app_label in args[1:]]
File "/usr/lib/python2.4/site-packages/django/core/meta/__init__.py",
line 76, in get_app
return __import__('%s.%s' % (MODEL_PREFIX, app_label), '', '',
[''])
File "/usr/lib/python2.4/site-packages/django/models/__init__.py",
line 13, in ?
modules = meta.get_installed_model_modules(__all__)
File "/usr/lib/python2.4/site-packages/django/core/meta/__init__.py",
line 111, in get_installed_model_modules
mod = __import__('django.models.%s' % submodule, '', '', [''])
File "/home/matt/code/djtutor/../djtutor/polls/models/polls.py", line
12
^
SyntaxError: invalid syntax
}}}
if I remove the poll addition to the INSTALLED_APPS section of
settings.py, it works again:
Works:
{{{
INSTALLED_APPS = (
)
}}}
Doesn't:
{{{
INSTALLED_APPS = (
'djtutor.polls',
)
}}}
any idea what I've done wrong?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---