Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Feature/report #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Uh oh!
There was an error while loading. Please reload this page.
Feature/report #1
Changes from all commits
2484e0671c9cd6db518c5659d416fd3769423473caa63d8c50c9f0348709a82e64834cb83891ca60235b62e74f022ffd7458b1b4d22b8bc3bbfe74710950129d361bcFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
PrINTech-Back
Setup un .env avec:
DJANGO_SETTINGS_MODULE=back.settings.dev (prod/base, dépend du container voulu)
Setup un .env avec:
DJANGO_SETTINGS_MODULE=back.settings.dev
Utiliser git flow pour gestion de branches:
https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow
Installer uv pour ta gestion de dépendances:
https://docs.astral.sh/uv/guides/tools/
Faire en sorte que uv lise le .env:
set -Ux UV_ENV_FILE .env
Faire en sorte que uv lise le .env:
set -Ux UV_ENV_FILE .env #sur fish sinon mettez directement dans votre bashrc.
Installer docker (Docker engine sur linux):
https://docs.docker.com/
Installer Django ( à travers uv ):
https://www.djangoproject.com/
Configurer Docker et créer le container:
sudo service docker start #mettre cette commande au lancement de wsl si envie
sudo docker compose up -d #créer le container selon le fichier docker-compose
sudo docker ps #vérification
Migrer django et lancer le serveur dev:
uv run ./manage.py makemigrations #créer la db en fonction de ton code python
uv run ./manage.py migrate
uv run ./manage.py runserver #lance le serveur
Générer un pdf à partir de .md (Markdown):
sudo apt install texlive-latex-recommended texlive-fonts-recommended
sudo apt install pandoc
pandoc [nom du fichier markdown].md -o [nom du fichier pdf à générer].pdf --toc -V geometry:margin=1in