Code

Opened 8 years ago

Closed 8 years ago

Last modified 7 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'

Attachments (0)

Change History (2)

comment:1 Changed 8 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 7 years ago by adrian

  • milestone Version 0.91 deleted

Milestone Version 0.91 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.