Skip to content

Commit

Permalink
Instruction sur la commande create_demo_pages
Browse files Browse the repository at this point in the history
  • Loading branch information
chloend committed Oct 29, 2024
1 parent 54c709f commit 8557426
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,21 @@ django-admin import_departements
django-admin import_communes
```

Des données de test peuvent être chargées ainsi (fixtures) :
### Données de test

- fixtures :
```bash
ls -d lemarche/fixtures/django/* | xargs django-admin loaddata
```

- commande Django :
```bash
django-admin create_demo_pages --load_content_pages
```

> **Remarque** : La commande `create_demo_pages --load_content_pages` crée 6 pages de types ContentPage :
('accessibilite', 'cgu', 'cgu-api', 'confidentialite', 'mentions-legales' et 'qui-sommes-nous').

## API

Il y a aussi une API, qui propose plusieurs endpoints et interfaces de documentation :
Expand Down

0 comments on commit 8557426

Please sign in to comment.