Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
To install it on your Ubuntu, follow the next steps:
1. Install python (if you have it installed, skip this step)
1 |
sudo apt-get install python |
2. Download the tarball from the Django Project website. You can download this file to your home directory.
1 |
cd |
1 |
wget http://www.djangoproject.com/download/1.0.2/tarball/ |
1 |
tar xzvf Django-1.0.2-final.tar.gz |
3. Now we can just move this entire package to somewhere logical. You can move it anywhere you like, but remember to modify the links accordingly. I use /usr/local/lib/.
1 |
sudo mv Django-1.0.2-final/ /usr/local/lib/django-1.0.2/ |
4. Link to it from the Python site-packages directory, and create a link to the django-admin.py executable.
1 |
cd /usr/local/lib/django-1.0.2/ |
1 |
sudo ln -s `pwd`/django /usr/lib/python2.5/site-packages/django |
1 |
sudo ln -s `pwd`/django/bin/django-admin.py /usr/local/bin/ |
5. Test it by changing to your home directory and running django-admin!
1 |
django-admin.py --version |
You should see this:
1 |
1.0.2 final |
6. Happy programming!
I think on 8.10 you can just:
sudo apt-get install python-django
and it will setup all the stuff
Vitaliy, you are right. But if you want to have the latest version, you’ll use my method.
Cheers!
for me the “sudo apt-get install python-django” approach just failed, on ubuntu 9.04. anyway, its a great, understandable and working guide! keep up with the free work :p