backend-django
pre-requis
-
python 3.7.9
-
packages pypi création virtual_env installation des packages depuis fichiers locaux
voir install/README.md section backend-django
- base postgres "Ogure-DB" avec "admin" ogure/ogure
voir database/README.md section postgresql
setup virtual env "ogure_ng_venv"
cd backend-django
python3.7 -m venv ogure_ng_venv
source ogure_ng_venv/bin/activate
pip3.7 install -r requirements.txt --no-index --find-links file:///home/ogure/ogure-ng/install/pypi/backend-django
python3.7 manage.py makemigrations
pgAdmin - DB vide...
python3.7 manage.py migrate
pgAdmin - DB avec 32 tables...
python3.7 manage.py createsuperuser
admin/password2022
python3.7 manage.py collectstatic
staticfiles/
python3.7 manage.py runserver 0:8000
// deploy 'staticfiles' vers nginx
// verifier que staticfiles est bien reference dans les fichiers nginx.conf
sudo ./deploy.sh
test depuis poste IAG http://:8000/admin
login avec admin/******** -> OK
création Utilisateurs
user1: ogure/******** -> OK