ressources:programmation:django
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| ressources:programmation:django [2024/03/15 13:31] – créée random | ressources:programmation:django [2025/12/10 15:39] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 11: | Ligne 11: | ||
| 1. Préparation de l' | 1. Préparation de l' | ||
| - | | + | mkdir django-intro |
| - | | + | python -m venv .venv |
| - | `source .venv/ | + | |
| - | `pip install django` | + | |
| 2. créer un projet | 2. créer un projet | ||
| - | `django-admin startproject core .` | + | |
| 3. créer un.e super utilisateur.rice | 3. créer un.e super utilisateur.rice | ||
| - | `python manage.py migrate` | + | |
| - | `python manage.py createsuperuser` | + | |
| Accès à l' | Accès à l' | ||
| Ligne 33: | Ligne 33: | ||
| 4. créer une application ' | 4. créer une application ' | ||
| - | `python manage.py startapp fragments` | + | |
| Ajouter l' | Ajouter l' | ||
| Ligne 51: | Ligne 51: | ||
| dans / | dans / | ||
| - | function based view | + | |
| - | template index | + | template index |
| 8. urls | 8. urls | ||
ressources/programmation/django.1710509507.txt.gz · Dernière modification : (modification externe)
