I get:
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import django >>> django.__file__ '/var/lib/python-support/python2.5/django/__init__.pyc' >>> so i can go to that '/var/lib/python-support/python2.5/django/__init__.py' edit it to say r...@pubuntu:/var/lib/python-support/python2.5/django# cat __init__.py VERSION = (10630, None) r...@pubuntu:/var/lib/python-support/python2.5/django# r...@pubuntu:/var/lib/python-support/python2.5/django# cat __init__.py VERSION = (10630, None) and i get Django version 10630 but i get same original error unexpected keyword argument 'max_length': pubu...@pubuntu:~/djsite/mysite$ python manage.py runserver Validating models... mysite.polls: __init__() got an unexpected keyword argument 'max_length' 1 error found. Django version 10630, using settings 'mysite.settings' Development server is running at http://127.0.0.1:8000/ Quit the server with CONTROL-C. i just cp -R my previous folder to this new folder. i guess something is wrong with my polls/models.py pubu...@pubuntu:~/djsite/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() pubu...@pubuntu:~/djsite/mysite/polls$ but i can't see difference between it and example at http://docs.djangoproject.com/en/dev/intro/tutorial01/?from=olddocs 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() On Apr 24, 10:33 am, Karen Tracey <[email protected]> wrote: > On Fri, Apr 24, 2009 at 10:16 AM, bconnors <[email protected]> wrote: > > > How do I find out where the Django version 0.96.1 error message--even > > though in the directory I’m working in has Checked out revision 10630, > > is coming from? > > From a python shell, import django and see where it's coming from. For > example, from a random command prompt on my box: > > k...@lbox:~$ python > Python 2.5.2 (r252:60911, Oct 5 2008, 19:24:49) > [GCC 4.3.2] on linux2 > Type "help", "copyright", "credits" or "license" for more information.>>> > import django > >>> django.__file__ > > '/home/kmt/django/Django-0.96.2/django/__init__.pyc' > > > > - Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

