On Fri, Apr 24, 2009 at 11:35 AM, bconnors <[email protected]> wrote:

>
> 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
>

Nooooooooooooooooo!  That file is telling you what level of code is present
in the rest of the files that make up that django tree. Simply changing the
number in there doesn't do anything to change the actual level of the code
you are running, it just makes the version report inaccurate.  The point of
looking at django.__file__ was to see where it was coming from, and the
answer is you've got the ubuntu 0.96 package installed.

If you want to run the level of Django you checked out out of SVN instead of
the 0.96 ubuntu level, you can set your PYTHONPATH to point at it
explicitly:

export PYTHONPATH=/path/to/your/django/checkout

in your shell before running manage.py.

You might also want to follow the other instructions given by Brett for
removing the ubuntu  0.96 package so that if you neglect to set your python
path you'll get an error related to not being able to import django at all
rather than less obvious errors resulting from a version mismatch between
what your code is written for and the actual Django used.  You definitely
want to do this if you decide to do the next paragraph.

Finally, if you want to avoid having to set your python path explicitly, you
can actually "install" your checked-out copy by creating a symbolic link to
it in your Python site-packages directory, as documented here:

http://docs.djangoproject.com/en/dev/topics/install/#installing-development-version

(You only seem to have gone up through step 2.)

Karen

--~--~---------~--~----~------------~-------~--~----~
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