WhiteNoise für statische Dateien, Hinweis "Runde beendet" korrigiert
- WhiteNoise (6.12.0) liefert CSS/JS/Bilder auch mit DEBUG=False aus, ohne --insecure und ohne collectstatic (WHITENOISE_USE_FINDERS) - Steuerung: "Runde ist beendet" war immer sichtbar, weil d-flex das hidden-Attribut überschrieb; hidden sitzt jetzt auf einem Wrapper - 2 neue Tests (77 insgesamt), README und Changelog aktualisiert Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2862f32724
commit
b7f46147b2
7 files changed
+55
-14
No files matched your search
@@ -124,10 +124,7 @@ So installierst du das Projekt lokal und sauber mit einer Python-Umgebung und ei
|
||||
```bash
|
||||
python manage.py runserver
|
||||
```
|
||||
Danach ist die App unter `http://127.0.0.1:8000` erreichbar. Mit `DEBUG=False` liefert der Entwicklungsserver CSS, JavaScript und Bilder nur mit `--insecure` aus:
|
||||
```bash
|
||||
python manage.py runserver 0.0.0.0:8010 --insecure
|
||||
```
|
||||
Danach ist die App unter `http://127.0.0.1:8000` erreichbar. CSS, JavaScript und Bilder liefert WhiteNoise aus, auch mit `DEBUG=False` – `--insecure` und `collectstatic` sind nicht nötig. Neue statische Dateien werden beim Serverstart eingelesen.
|
||||
|
||||
### 🧪 Tests
|
||||
Die Tests laufen auf einer SQLite-Datenbank im Arbeitsspeicher, der MySQL-User braucht dafür keine zusätzlichen Rechte:
|
||||
@@ -275,10 +272,7 @@ Follow these steps to install the project locally in a clean Python environment
|
||||
```bash
|
||||
python manage.py runserver
|
||||
```
|
||||
The app is then available at `http://127.0.0.1:8000`. With `DEBUG=False`, the development server only serves CSS, JavaScript, and images when started with `--insecure`:
|
||||
```bash
|
||||
python manage.py runserver 0.0.0.0:8010 --insecure
|
||||
```
|
||||
The app is then available at `http://127.0.0.1:8000`. CSS, JavaScript, and images are served by WhiteNoise, also with `DEBUG=False` – neither `--insecure` nor `collectstatic` is required. New static files are picked up when the server starts.
|
||||
|
||||
### 🧪 Tests
|
||||
Tests run on an in-memory SQLite database, so the MySQL user needs no extra privileges:
|
||||
|
||||
Reference in new issue
Block a user