Skip to content

kennyhei/koulutettuninja-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koulutettuninja-api

Setup

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Create .env with:

SECRET_KEY=WRITE_SOME_SECRET_STR_HERE

Continue with:

python manage.py migrate
python manage.py collectstatic
python manage.py loaddata api/fixtures/data.json
python manage.py createsuperuser
python manage.py runserver

Always-on task

Create file qcluster.sh with content:

export $(cat /path/to/your/env/file/.env | xargs)
source /path/to/virtualenv/bin/activate
python /path/to/django/app/manage.py qcluster

Run script in hosting service as continous background task using command: source /path/to/qcluster.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published