djan wrote: > Hello, > > I'm following along with djangobook.com, and I have a problem in > chapter 5 that I cannot resolve. I am using OpenSuSE-11.0, Python > 2.5.2, sqlite3-3.5.7-17.1 (and incidentally, this same error occurs > with MySQL). > > <snip> > File "$HOME/djcode/mysite/books/models.py", line 3, in <module> > class Publisher(models.Model): > File "$HOME/djcode/mysite/books/models.py", line 4, in Publisher > name = models.CharField(maxlength=30) > TypeError: __init__() got an unexpected keyword argument 'maxlength
The book is a bit outdated, maxlength should become max_length please do read: http://docs.djangoproject.com/en/dev/ and: http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges for more information about django and the changes in 1.0 Regards, Roland van Laar --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

