Receive our weekly advanced programming tips for FREE
25.Feb.
How install Django on Linux/Ubuntu
0
| 0 votes
Autor: bookkeeper
Chapter: Django
Django is a web framework written in Python. It's a high-level Python web framework for rapid development and clean, pragmatic design!

In this tutorial we are going to install Django on Linux

There is two ways two install it:


I. SVN(recommended)

1. Create a folder something like "repository" and change into it
2. Checkout the code with SVN: svn co http://code.djangoproject.com/svn/django/trunk/django django
3. You will have a folder called django
4. Add the path to PYTHONPATH where you checkout django like: export PYTHONPATH=/path/to/repository/
5. Call python and import django like: "import django"
6. If python doesn't say anything when you are ready to go!

II. Download

2. Download the recent version
3. Unpack it: tar xzvf Django-X.X.X.tar.gz
4. Change to django folder
5. Install it:  sudo python setup.py install
6. Call python and import django like: "import django"
7. If python doesn't say anything when you are ready to go!

Done!