chore: initial.json

This commit is contained in:
relikd
2024-07-03 00:47:14 +02:00
parent 8cd5bbcbc0
commit 72eec662e4
3 changed files with 36 additions and 1 deletions

View File

@@ -7,8 +7,14 @@ Django app for managing places with json export and a fully-static frontend map.
## Deploy ## Deploy
Start container with `docker-compose up -d` and create admin user (first-run): Start container with `docker-compose up -d` and create admin user (first-run only):
```sh ```sh
docker-compose exec app python manage.py createsuperuser --email '' docker-compose exec app python manage.py createsuperuser --email ''
``` ```
Further, the frontend needs the three Content labels `info`, `imprint`, and `come-back-later`. You can either, create them manually, or run:
```sh
docker-compose exec app python manage.py loaddata initial.json
```

View File

View File

@@ -0,0 +1,29 @@
[
{
"model": "app.content",
"fields": {
"key": "info",
"title": "About",
"body": "about this project",
"wide": true
}
},
{
"model": "app.content",
"fields": {
"key": "imprint",
"title": "Imprint",
"body": "your imprint",
"wide": false
}
},
{
"model": "app.content",
"fields": {
"key": "come-back-later",
"title": "Not Available",
"body": "come back later",
"wide": false
}
}
]