Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#1360 closed defect (invalid)

"manage.py sql polls" raises exception

Reported by: Jarosław Zabiełło Owned by: Jacob
Component: Documentation Version: dev
Severity: major Keywords: manage.py manual
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When I try to follow
http://www.djangoproject.com/documentation/tutorial1/
After ./manage.py sql polls something is wrong

./manage.py sql polls
BEGIN;
Traceback (most recent call last):
  File "./manage.py", line 11, in ?
    execute_manager(settings)
  File "/usr/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/core/management.py", line 1021, in execute_manager execute_from_command_line(action_mapping)
  File "/usr/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/core/management.py", line 996, in execute_from_command_line output = action_mapping[action](mod)
  File "/usr/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/core/management.py", line 70, in get_sql_create for klass in mod._MODELS:
AttributeError: 'module' object has no attribute '_MODELS'

Change History (2)

comment:1 by Adrian Holovaty, 19 years ago

Resolution: invalid
Status: newclosed

Your polls/models/init.py doesn't contain this:

__all__ = ['polls']

comment:2 by Adrian Holovaty, 18 years ago

milestone: Version 0.91

Milestone Version 0.91 deleted

Note: See TracTickets for help on using tickets.
Back to Top