Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#1360 closed defect (invalid)

"manage.py sql polls" raises exception

Reported by: Jarosław Zabiełło Owned by: jacob
Component: Documentation Version: master
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: UI/UX:

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 Changed 9 years ago by adrian

  • Resolution set to invalid
  • Status changed from new to closed

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

__all__ = ['polls']

comment:2 Changed 9 years ago by adrian

  • milestone Version 0.91 deleted

Milestone Version 0.91 deleted

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