xOn Apr 22, 7:30 pm, bconnors <bob.conn...@wdc.usda.gov> wrote: > I just updated django > > pubu...@pubuntu:~$ sh -x dj > + svn cohttp://code.djangoproject.com/svn/django/trunk/django-trunk > U django-trunk/django/db/backends/oracle/creation.py > U django-trunk/django/forms/models.py > U django-trunk/django/contrib/gis/db/models/sql/query.py > U django-trunk/django/contrib/gis/tests/relatedapp/tests.py > U django-trunk/django/contrib/admin/options.py > U django-trunk/django/contrib/csrf/middleware.py > U django-trunk/tests/regressiontests/modeladmin/models.py > Checked out revision 10620. > > Then I try > > pubu...@pubuntu:~/django-trunk/django/bin/mysite$ python manage.py > runserver > Validating models... > mysite.polls: __init__() got an unexpected keyword argument > 'max_length' > 1 error found. > > Django version 0.96.1, using settings 'mysite.settings' > Development server is running athttp://127.0.0.1:8000/ > Quit the server with CONTROL-C. > > Here’s my models.py > pubu...@pubuntu:~/django-trunk/django/bin/mysite/polls$ cat models.py > from django.db import models > class Poll(models.Model): > question = models.CharField(max_length=200) > pub_date = models.DateTimeField('date published') > > class Choice(models.Model): > poll = models.ForeignKey(Poll) > choice = models.CharField(max_length=200) > votes = models.IntegerField() > > I read where if you see 'max_length' it probably is because your > django needs to be updated, but I just did that. > > any ideas?
You may have updated your checkout, but you're obviously not actually running that checkout, as you can see from this message: Django version 0.96.1, using settings 'mysite.settings' So you must have installed another version of Django somewhere else. By the way, it's probably not related to your problem but it's a bit strange to put your site code under django/bin. Site code is not 'bin', which is usually for executable scripts, and it should be kept separately from Django's core code anyway. -- DR. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---