This commit is contained in:
2022-11-08 21:19:51 +01:00
commit 4c456eafc3
160 changed files with 21472 additions and 0 deletions

64
backend-django/README.md Normal file
View File

@@ -0,0 +1,64 @@
# 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"
````bash
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://<HOST>:8000/admin
login avec admin/******** -> OK
création Utilisateurs
user1:
ogure/******** -> OK