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?

I did
find / -name site-packages -print

and got :


/usr/lib/python2.5/site-packages
/usr/lib/python2.4/site-packages
/usr/lib/python2.3/site-packages
/usr/local/lib/python2.5/site-packages



/mnt/C/2-2-9/complete_project/pinax-env/Lib/site-packages
/mnt/C/2-2-9/Lib/site-packages
/mnt/C/2-2-9/Lib/site-packages/complete_project/pinax-env/Lib/site-
packages
/mnt/C/4-9pinax/pinax-env/Lib/site-packages
/mnt/C/4-9pinax/pinax-env/Lib/site-packages/pip-0.3.1-py2.6.egg/pinax-
env/Lib/si
te-packages
/mnt/C/7-17-8allplone3/Plone 3/Python/Lib/site-packages


/mnt/C/4-9pinax/pinax-env/Lib/site-packages/pip-0.3.1-py2.6.egg/pinax-
env/Lib/si
te-packages
/mnt/C/7-17-8allplone3/Plone 3/Python/Lib/site-packages
/mnt/C/Program Files/plone/Plone/python/Lib/site-packages
/mnt/C/Program Files/plone/Plone 3/Plone/python/Lib/site-packages
/mnt/C/Program Files/plone/Plone 3/Python/Lib/site-packages
/mnt/C/Program Files/plone/Plone 3/Python/Lib/site-packages/
dateutil-1.2-py2.4.e
gg/lib/python2.4/site-packages
find: /mnt/C/Program Files/plone/Plone 3/Zope/lib/python/webdav/tests:
Input/out
put error
/mnt/C/Program Files/plone/Python/Lib/site-packages


/mnt/C/Program Files/plone2.5/Python/Lib/site-packages
/mnt/C/Program Files/Wing IDE 3.1/bin/PyCore/lib/site-packages
/mnt/C/Python24/Lib/site-packages
/mnt/C/Python24/Plone3.2.1/python/Lib/site-packages
/mnt/C/Python25/Lib/site-packages


On Apr 24, 9:28 am, bconnors <bob.conn...@wdc.usda.gov> wrote:
> I created a djsite folder and put new django there
>
> pubu...@pubuntu:~/djsite/mysite$
> + svn cohttp://code.djangoproject.com/svn/django/trunk/django-trunk
> Checked out revision 10630.
> pubu...@pubuntu:~/djsite/mysite$
>
> then did
>
> 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 0.96.1, using settings 'mysite.settings'
> Development server is running athttp://127.0.0.1:8000/
> Quit the server with CONTROL-C.
>
> I read about python -c "from distutils.sysconfig import
> get_python_lib;
> But
> pubu...@pubuntu:~/djsite/mysite$ sh -x w
> + python -c from distutils.sysconfig import get_python_lib;
> pubu...@pubuntu:~/djsite/mysite$
>
> that doesn’t tell me where my site-packages are.
>
> How do I find out where this Django version 0.96.1, is coming from?
>
> On Apr 22, 2:35 pm, Daniel Roseman <roseman.dan...@googlemail.com>
> wrote:
>
>
>
> > 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.- Hide quoted text -
>
> > - Show quoted text -- 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 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to