Repo-Umzug, Doku-Update

This commit is contained in:
2026-01-26 17:35:57 +01:00
committed by Hraban Ramm
parent 7bf6587462
commit b22246f37f

View File

@@ -1,8 +1,11 @@
# Installation zum Testen & Entwickeln # Testen & Entwickeln
## Installation
Wir entwickeln auf Python 3.14. Python 3.12+ funktioniert, ältere haben zumindest Probleme mit Frescobaldi, was hiermit nichts zu tun hat… Wir entwickeln auf Python 3.14. Python 3.12+ funktioniert, ältere haben zumindest Probleme mit Frescobaldi, was hiermit nichts zu tun hat…
- `git clone ssh://git@git.zahlenlabyrinth.de:9922/Notenbund/liederquelle.git` - Python installieren von [https://www.python.org/downloads/]
- `git clone ssh://git@git.notenbund.de:9922/Notenbund/liederquelle.git`
- `cd liederquelle` - `cd liederquelle`
- Python virtual environment (Venv) anlegen: `python3.14 -m venv .venv` - Python virtual environment (Venv) anlegen: `python3.14 -m venv .venv`
- Venv aktivieren: `. .venv/bin/activate` - Venv aktivieren: `. .venv/bin/activate`
@@ -20,3 +23,16 @@ Wir entwickeln auf Python 3.14. Python 3.12+ funktioniert, ältere haben zuminde
- Admin anlegen: `python3 manage.py createsuperuser` - Admin anlegen: `python3 manage.py createsuperuser`
- Server starten: `python3 manage.py runserver` - 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`.
## Aktualisieren
- `cd liederquelle`
- `git pull`
- Venv aktivieren: `. .venv/bin/activate`
- Abhängigkeiten aktualisieren: `pip install -Ur requirements.txt`
- `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