Total Pageviews

Friday, 6 December 2013

django common commands

# start a new project

>>> django-admin.py startproject $mysite

# create a new site inside of a project

>>> python manage.py startapp $siteName


# sync the database:

>>> python manage.py syncdb

 # start dev server:

>>> python manage.py runserver 0.0.0.0:portnumber