Showing posts with label django. Show all posts
Showing posts with label django. Show all posts

Saturday, May 16, 2015

How to install Django on Ubuntu 14.04

 Installing Django on Ubuntu

Before we begin to install Django, we need to ensure that we have updated to the latest version of Python available.

$ apt-get update
$ apt-get install python-dev python-pip

check python version using below commands

$ python –version

Installing a database system (SQLite)

$ sudo apt-get install sqlite

Installing pip

$ sudo apt-get install python-pip

check pip version

$ pip - - version

Installing Django

$ cd /usr/local/hadoop/

 $ tar -xzvf index.html

$ cd Django-1.5.1

$ sudo python install

You can use this command to check that Django is installed and working


Testing create a sample project 

 $ sudo startproject app   ( app is project name)

$ cd  app/

To run the project using following command

$ python runserver - -insecure

Run the above command get the following output

Validating models...

0 errors found
May 15, 2015 - 02:20:27
Django version 1.5.1, using settings 'app.settings'
Development server is running at
Quit the server with CONTROL-C.

goto browser type