sudo pip install virtualenv
Create a virtual environment
Work on the virtual environment
source chemotracker/bin/activate
OR
workon chemotracker
pip install -r requirements.txt
python manage.py installwatson
python manage.py buildwatson
python manage.py runserver
If you are adding a new model, run these commands to migrate the model to the database:
python manage.py makemigrations # Creates the migration
python manage.py migrate # Applies migrations to database
To end the virtual environment
To run the server as a detached process
screen
source ~/.bash_profile
Start the server as normal
Press Ctrl + A or Command + A (on mac)
Press D
To navigate back to detached process