Django Installing

Find out the version of Python:

python --version


Find out the version of  easy_install / pip:

easy_install --version

 Installing Django :

sudo easy_install django==1.9 or simply django (latest version)

Checkout the Version of Django Installed :

django-admin --version

 or
python -c 'import django; print(django.get_version())'
 
Creating a project
  
django-admin startproject project_name
Running the Project :
  
cd project_name
python manage.py runserver
  or
./manage.py runserver
 
Running the server publicly or changing port :
 
./manage.py runserver 0.0.0.0:8000
 
port no : 127.0.0.1:8000  (By default )
 
 

0 comments:

Copyright © 2013 SoftKul