Saturday, May 24, 2008

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

>>> startproject $mysite

# create a new site inside of a project

>>> python startapp $siteName

# start dev server

>>> python runserver

# sync the database with recent model changes.

>>> python syncdb