- Instructions to install on an Ubuntu Linux server
- Instructions to update code on an Ubuntu Linux server
python manage.py runserver
python manage.py createsuperuser
python manage.py makemigrations
stages the updates for the database with new models/tables
python manage.py makemigrations <appname>
To create initial migrations for an app, run makemigrations and specify the app name.
python manage.py migrate
apply the staged updates
During development if you need to start the DB over from scratch do the following:
rm db.sqlite3 remove everything in InteractiveDB/migrations/ except init.py
then rebuild the DB:
python manage.py makemigrations <appname>
python manage.py migrate