Import für authors.yml; Doku verbessert

This commit is contained in:
2026-02-20 15:25:20 +01:00
committed by Hraban Ramm
parent ecc5e66167
commit b1c572803b
6 changed files with 119 additions and 3 deletions

View File

@@ -4,7 +4,7 @@
Wir entwickeln auf Python 3.14. Python 3.12+ funktioniert, ältere haben zumindest Probleme mit Frescobaldi, was hiermit nichts zu tun hat…
- Python installieren von [https://www.python.org/downloads/]
- Python installieren von [python.org](https://www.python.org/downloads/)
- `git clone ssh://git@git.notenbund.de:9922/Notenbund/liederquelle.git`
- `cd liederquelle`
- Python virtual environment (Venv) anlegen: `python3.14 -m venv .venv`
@@ -22,7 +22,7 @@ Wir entwickeln auf Python 3.14. Python 3.12+ funktioniert, ältere haben zuminde
- Datenbank (SQLite) anlegen: `python3 manage.py makemigrations quellen; python3 manage.py migrate`
- Admin anlegen: `python3 manage.py createsuperuser`
- Server starten: `python3 manage.py runserver`
- Öffne [http://localhost:8080/admin] im Browser
- Öffne http://localhost:8080/admin im Browser
Statt `python3 manage.py` müsste auch der direkte Aufruf des Skripts funktionieren, also `./manage.py`.
@@ -35,4 +35,9 @@ Statt `python3 manage.py` müsste auch der direkte Aufruf des Skripts funktionie
- `cd liederquelle`
- Datenbankstruktur aktualisieren: `python3 manage.py makemigrations quellen; python3 manage.py migrate`
- Server starten: `python3 manage.py runserver`
- Öffne [http://localhost:8080/admin] im Browser
- Öffne http://localhost:8080/admin im Browser
## Im- und Export
- YAML exportieren: `./manage.py dumpdata --format yaml --indent 2 -o ../fixtures/fixture.yaml`
- `authors.yaml` importieren: `.\manage.py import_authors <Pfad>`