Suppression du paramètre teamid dans l'url pour récupérer tout ce qui est lié aux courses
34 lines
610 B
Markdown
34 lines
610 B
Markdown
# Installation
|
|
|
|
##Prepare database
|
|
python3 manage.py makemigrations
|
|
|
|
##Create admin tables
|
|
python3 manage.py migrate
|
|
|
|
##Create admin user
|
|
python3 manage.py createsuperuser --email admin@gmail.com --username admin
|
|
|
|
##Prepare database for timelaps
|
|
python3 manage.py makemigrations timelaps
|
|
|
|
##migrate timelaps
|
|
python3 manage.py migrate
|
|
|
|
# Exploitation
|
|
|
|
##Exécuter les tests
|
|
python3 manage.py test
|
|
|
|
coverage run --source='.' manage.py test
|
|
coverage html
|
|
coverage report
|
|
|
|
##Lancement du server
|
|
cd /mnt/d/Dev/Applications/timelaps_api
|
|
|
|
service postgresql start
|
|
service apache2 start
|
|
|
|
python3 manage.py runserver
|