From 730a34a56784ece1120401be2a55c4296cdff915 Mon Sep 17 00:00:00 2001 From: Hraban Date: Tue, 27 Jan 2026 23:03:33 +0100 Subject: [PATCH] docs/README.md aktualisiert Kann nicht pushen, vielleicht klappt es so --- docs/README.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/docs/README.md b/docs/README.md index 4c36c46..5e2b89d 100644 --- a/docs/README.md +++ b/docs/README.md @@ -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… -- `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` - Python virtual environment (Venv) anlegen: `python3.14 -m venv .venv` - 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` - Server starten: `python3 manage.py runserver` - Ö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