My custom django template, using this in case of racing with deadlines
Install python distribution (conda), either miniconda or anaconda
make init conda=miniconda #default
or
make init conda=anaconda
then
export PATH=$PATH:$HOME/miniconda3/bin
or
export PATH=$PATH:$HOME/anaconda/bin
Install requirements with pip (bundled with both of the conda dist)
make requirements
make start-dev
make build
sudo make deploy
Changes to the django code will be automatically reloaded by gunicorn so technically no hard restart is needed to app service. However, just in case:
sudo make restart
If there is an error when using this template in Ubuntu Server, please install the following packages via apt.
sudo apt-get update && sudo apt-get install build-essential python3-dev