A collection of backend administrative modules for various parts of the website.
This is a python and Django based project.
It includes the setup for the pipenv python virtual environment and package management. Please install it first and then run:
pipenv install --dev
pipenv shell
You can leave the created virtual environment by running exit
from the shell.
Second, you need to link the development settings file and create a secrets file:
cd sledilnik/settings
ln -s develop.py __init__.py
echo "SECRET_KEY = 'secret-key'" > secrets.py
cd -
Finally, crete the databse and run migrations:
./manage migrate
Create a superuser by:
./manage.py createsuperuser
Finally, run the server and visit the admin section at http://127.0.0.1:8000/admin/:
./manage.py runserver
You can visualize the data models of this project. Please make sure you have install the development requirements by running pipenv install --dev
and the run:
./manage.py graph_models -g -o Model.pdf --no-inheritance <app-name>
Helm chart used is sledilnik/django
located in https://github.com/sledilnik/helm-repo/. See files in .github.workflows
. Use NOBUILD
keyword in commit message to skip build. Use NODEPLOY
keyword in commit message to skip deploy
Change ../helm-repo/charts/django
with path to local checkout of helm chart, do modifications and try it out.
helm upgrade website-backend-stage ../helm-repo/charts/django --install --atomic --namespace sledilnik-stage -f .helm/values.stage.yml --debug