Skip to content

sanadhis/django-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

When in deadlines, use this. Otherwise don't

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published