I created a djsite folder and put new django there

pubu...@pubuntu:~/djsite/mysite$
+ svn co http://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 at http://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 <[email protected]>
wrote:
> xOn Apr 22, 7:30 pm, bconnors <[email protected]> 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 -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to