Django notes: Difference between revisions

From Federal Burro of Information
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:


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


the process for tuning the schema:
the process for tuning the schema:
Line 11: Line 10:
  python manage.py migrate scm
  python manage.py migrate scm
  python manage.py runserver
  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

Revision as of 13:50, 18 September 2014

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