Install and configure Django on Linux Server with Apache and mod_wsgi

If you want to install Django in your Linux machine you need the following:

  • Python 2.5 or higher.
  • Apache 2 or higher.
  • Download mod_wsgi.

In this case I will explain how to do it in a Debian based server, and I will supose you already have python and Apache installed.

1) Download Django from https://www.djangoproject.com/download/  

wget https://www.djangoproject.com/download/1.4.3/tarball/

2) Uncompress the Django source.

 $ tar xzvf Django-1.4.3.tar.gz 

3) Go to Folder

 cd Django-1.4.3

4) Install it using python:

 python manage.py install

2) In this point you should be able to create django project on any folder by typing:

python-admin.py startproject myproject