django common commands

I keep forgetting all of the different django commands so I am creating this cheat sheet for myself.

# start a new project

>>> django-admin.py startproject $mysite

# create a new site inside of a project

>>> python manage.py startapp $siteName

# start dev server

>>> python manage.py runserver

# sync the database with recent model changes.

>>> python manage.py syncdb

Share