./install_django_ubuntu.shsource ./.venv/bin/activategit@github.com:AdWav/Django_Tuto.gitpip install -r requirements.txtAssurez-vous d'avoir le bon type de server, dans le fichier POC_livredor/settings.py
sudo apt-get install mysql-server mysql-clientsudo mysql_secure_installationliste des paramètres :
- Enter current password for root (enter for none) : [enter]
- Switch to unix_socket authentication: [n]
- Change the root password : [Y] → Cf emplacement du mot de passe
- Remove anonymous users ? [Y]
- Disallow root login remotely ? [n]
- Remove test Database and access to it ? [Y]
- Reload privilege table now ? [n]
mysql -u root -pCREATE DATABASE mabase;python3 manage.py runserverhttp://localhost:8000/admin/curl -X POST http://127.0.0.1:8000/article/ \
-H "Content-Type: application/json" \
-d '{"title":"article_1","article":"test_1"}' \
-u user_1:user1user