Django : Installation

Django is the web programming framework in python. It allow python programmers to show their expertise in web. Python is the powerful language we know.

On this tutorial I have going to show you how to install Django in your machine.

If you are a Linux user this tutorial is more comfortable for you.

  1. Open your terminal and check you already have python. if not install python using the command sudo apt-get install python to install python on your Linux environment.
  2. Install Apache Server and mod-wsgi
  3. Getting your database server is running. Django support for PostgreSQL, MySQL, Oracle and SQLite.
  4. Then you need pip in your python environment. to install pip
    sudo apt-get install python-pip

    or

    download the file get-pip.py then run this file with root access.

  5. Then if you have install pip install Django using the pip command
    sudo pip install Django

 That’s it check your Django is install properly using following python snap

import sys; 
sys.path = sys.path[1:];

import django;
print(django.__path__)"
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s