Skip to content

Instantly share code, notes, and snippets.

@datwright
Created February 25, 2011 03:08
Show Gist options
  • Save datwright/843315 to your computer and use it in GitHub Desktop.
Save datwright/843315 to your computer and use it in GitHub Desktop.
Setting up a Django 1.2 instance
# Go to directory where you want to create your new project directory. Project is
# called 'mysite'
django-admin.py startproject mysite
# Go into directory and start server. Port 8000 by default.
cd mysite
python manage.py runserver [port]
#change setting.py's DB-ENGINE to 'django.db.backends.sqlite3' and give the
# database a "name"
# sync with the db
python manage.py syncdb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment