id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 5252 unexpected keyword argument max_length anonymous Jacob "I got the following error: testsite.polls: __init__() got an unexpected keyword argument 'max_length' 1 error found. Traceback (most recent call last): File ""manage.py"", line 11, in execute_manager(settings) File ""/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/core/management.py"", line 1672, in execute_manager execute_from_command_line(action_mapping, argv) File ""/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/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 ""/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/db/models/loading.py"", line 40, in get_app mod = load_app(app_name) File ""/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/db/models/loading.py"", line 51, in load_app mod = __import__(app_name, {}, {}, ['models']) File ""/Library/webserver/django/testsite/../testsite/polls/models.py"", line 10, in class Choice(models.Model): File ""/Library/webserver/django/testsite/../testsite/polls/models.py"", line 12, in Choice choice = models.CharField(max_length=200) TypeError: __init__() got an unexpected keyword argument 'max_length' kimmings-computer:/library/webserver/django/testsite julian$ python manage.py sql polls when using the line below from above python manage.py sql polls ... after search the docs I found this page - http://www.djangoproject.com/documentation/0.96/models/lookup/ - which uses maxlength keyword, not max_length. after changing the keyword everything worked fine. in instaled on mac osx10.4 using mysql-python-1.2.2 mysql5 django0.96 :)" closed Documentation dev duplicate unexpected keyword max_length Unreviewed 1 0 0 0 0 0