Django notes

From Federal Burro of Information
Revision as of 13:50, 18 September 2014 by David (talk | contribs)
Jump to navigationJump to search

http://dustinfarris.com/2012/09/29/setting-up-a-django-server-with-gentoo.html

the process for tuning the schema:

update the model: scm.py in this case.

python manage.py makemigrations scm
python manage.py sqlmigrate scm 0004
python manage.py migrate scm
python manage.py runserver


Abrdgd Tutorial

go to project dir:

cd C:\users\david thornton\projects\sc2

check that django is installed and owrking

python -c "import django; print(django.get_version())"

make a new project:

django-admin.py startproject mysite