tags:

views:

139

answers:

4

Does anyone know how to / can anyone link to simple instructions for how to upgrade from Django 1.1 to Django 1.2?

I can find masses of documentation on the differences between them, the changes you'll need to make to your project etc.

What I can't find is actually how to upgrade!

Thanks.

+1  A: 

Django 1.2 is fully compatible with 1.1, so your projects could stay the same way.

To update django in your server: If you already have a svn repository, just update it, Otherwise uninstall Django and then download it again from here http://www.djangoproject.com/download/ I have never had problems with trunk version, but that is your decision.

juanefren
That's patently false. Django 1.2 included several well-documented backwards-incompatible changes (notably the changes to CSRF protection). The backwards incompatible changes may not hit every used, but upgrading for most people will require at least a few code tweaks.
Gabriel Hurley
@Gabriel-Hurley good point.
juanefren
A: 
svn co http://code.djangoproject.com/svn/django/trunk/ django-trunk
cd django-trunk
sudo python setup.py install
dotty
That doesn't upgrade you to 1.2, that upgrades you to trunk.
Dominic Rodger
Thanks - but how do I point an existing project at this version of Django, rather than the one it's using at the moment?
AP257
@AP257: I usually create a symlink from my Python site-packages directory to the Django version I am using. When I change versions I merely change the symlink to point at the right version.
Manoj Govindan
+1  A: 

I usually create a symlink from my Python site-packages directory to the Django version I am using. When I change versions I merely change the symlink to point at the right version. Here is the documentation for creating a symlink. The docs mention the development version but you can do it for any version.

Manoj Govindan
that's what I needed - thank you!
AP257
A: 

First, follow the instructions for removing old versions of Django

Then, you can follow these steps to pull the released branch of 1.2.x:

svn co http://code.djangoproject.com/svn/django/branches/releases/1.2.X/ django
cd django
sudo python setup.py install

I agree with uanefren, though. Using trunk has never posed any issues for me, and it probably has the best ongoing support and most current documentation.

Jordan Reiter