max_length / Upgrade error in tutorial part 1 (polls)

1 view
Skip to first unread message

mat...@gmail.com

unread,
Nov 13, 2007, 8:38:54 AM11/13/07
to Django users
I am stepping through Dajngo Tutorial (Part 1, to create polls
application) and get this error.

Unexpected keyword argument 'max length' when running "manage syncdb"

If I change it to "maxlength" it works:

I did see note in tutorial regarding old version and I was using an
earlier version (0.96) - I then loaded the latest version by:
- delete django directory from "site package"
- download 0.96.1 files (tar.gz)
- run python setup.py install

Still get the same error...

Without using the documentation from previous version - what can I do
to fix this?

I believe I am running latest version.

Import django
Django.VERSION

I see latest version (0.96.1)

Any other ideas, short of going back to previous version documents?
(which doesn't *really* solve the problem)

Many Thanks
Liam

Matt McClanahan

unread,
Nov 13, 2007, 9:01:24 AM11/13/07
to Django users
On Nov 13, 12:38 am, mati...@gmail.com wrote:
> I am stepping through Dajngo Tutorial (Part 1, to create polls
> application) and get this error.
>
> Unexpected keyword argument 'max length' when running "manage syncdb"
>
> If I change it to "maxlength" it works:

This is the proper solution when using the latest Django release. A
version of Django has not yet been released which uses max_length.

> Without using the documentation from previous version - what can I do
> to fix this?

The documentation found at http://www.djangoproject.com/documentation/0.96/
is the right version to refer to when using the latest release 0.96.1.

Matt

mat...@gmail.com

unread,
Nov 13, 2007, 9:07:39 AM11/13/07
to Django users
Thanks for clarifying that Matt - I thought I was going crazy.


On Nov 13, 11:01 am, Matt McClanahan <matt.mcclana...@gmail.com>
wrote:


> On Nov 13, 12:38 am, mati...@gmail.com wrote:
>
> > I am stepping through Dajngo Tutorial (Part 1, to create polls
> > application) and get this error.
>
> > Unexpected keyword argument 'max length' when running "manage syncdb"
>
> > If I change it to "maxlength" it works:
>
> This is the proper solution when using the latest Django release. A
> version of Django has not yet been released which uses max_length.
>
> > Without using the documentation from previous version - what can I do
> > to fix this?
>

> The documentation found athttp://www.djangoproject.com/documentation/0.96/

Reply all
Reply to author
Forward
0 new messages