hi, after hitting
python manage.py sql polls
an error appears and i don't know how to debug in python for find the
error.
could someone help me with this, THANKS
This is what appears on screen:
mysite.polls: __init__() got an unexpected keyword argument
'max_length'
1 error found.
Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_manager(settings)
File "/var/lib/python-support/python2.5/django/core/management.py",
line 1672, in execute_manager
execute_from_command_line(action_mapping, argv)
File "/var/lib/python-support/python2.5/django/core/management.py",
line 1620, in execute_from_command_line
mod_list = [models.get_app(app_label) for app_label in args[1:]]
File "/var/lib/python-support/python2.5/django/db/models/
loading.py", line 40, in get_app
mod = load_app(app_name)
File "/var/lib/python-support/python2.5/django/db/models/
loading.py", line 51, in load_app
mod = __import__(app_name, {}, {}, ['models'])
File "/home/eduardo/djangoProject/mysite/../mysite/polls/models.py",
line 5, in <module>
class Poll(models.Model):
File "/home/eduardo/djangoProject/mysite/../mysite/polls/models.py",
line 6, in Poll
question = models.CharField(max_length=200)
TypeError: __init__() got an unexpected keyword argument 'max_length'
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---