Skip to content

Latest commit

 

History

History
50 lines (42 loc) · 1.08 KB

README.md

File metadata and controls

50 lines (42 loc) · 1.08 KB

django-template

My custom django template, using this in case of racing with deadlines

Getting started

1. Prerequisites

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

2. Install requirements

Install requirements with pip (bundled with both of the conda dist)

make requirements

3. Starting the DEV server

make start-dev

Deploying the application

1. Build app.service for systemd

make build

2. Install and deploy into systemd

sudo make deploy

3. Restarting app

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

Notes:

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