-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Lauren Lavoie edited this page Sep 18, 2015
·
2 revisions
- Install python3 and django 1.8.4
- Install postgresql
- Install python3-dev
- Install psycopg2 using pip3
- django-admin startproject doallthethings
- Create a postgres user and DB manually, specify them in settings.py (see https://docs.djangoproject.com/en/1.8/ref/settings/#std:setting-DATABASES)
- python3 manage.py migrate
- startapp
When changing schema:
- Change your models (in models.py).
- Run python manage.py makemigrations dothings to create migrations for those changes
- Run python manage.py migrate to apply those changes to the database.