Action is the foundational key to all success.
Anthony Robbins

Whiskey has killed more men than bullets, but most men would rather be full of whiskey than bullets.
Logan Pearsall Smith

TurnKey Linux is a great organization.  The have built dozens of appliances based on Ubuntu 10.04 LTS Server.  These appliances can be run as virtual machines or on bare metal.  Most require only 256 MB of RAM.  Lately, I have been experimenting with the Django Appliance.

The Django version in this appliance is 1.1.1  I wanted to upgrade the Django to a later version.  This blog will show how to do the update.  The idea how to do this upgrade came from an entry in the TurnKey Linux Forum.

First, verify the version of Django.

>>> import django
>>> django.VERSION

Press ctrl-d to exit the python interpreter.

There is a ppa that is for Ubuntu back port testing.  The data on this site will be used to configure the repositories of my server.

To edit the sources.list file, type nano /etc/apt/sources.list.d/sources.list and the deb and deb-src lines from above.  Press ctrl-o to save the file and then ctrl-x to exit the nano editor.

Before updating, we need to add the signing key.  This is the value after the slash – AAC7706F

apt-key adv --keyserver --recv-key AAC7706F
apt-get update
apt-get install python-django

Restart the apache server and django is ready to go.

Tags: , , , ,

Leave a Reply