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:
H4nSoloandClaude Opus 5.5 committed 2026-10-24 22:45:51 +02:00
1 parent 2862f32724
commit b7f46147b2
7 files changed
+55 -14

No files matched your search

+9
View File
@@ -101,6 +101,8 @@ INSTALLED_APPS = [
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
# WhiteNoise liefert statische Dateien auch beim runserver aus (ohne --insecure)
'whitenoise.runserver_nostatic',
'django.contrib.staticfiles',
'rest_framework',
@@ -126,6 +128,7 @@ REST_FRAMEWORK = {
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
@@ -242,6 +245,12 @@ STATICFILES_DIRS = [
BASE_DIR / "assets",
]
# WhiteNoise: statische Dateien direkt aus den App-Ordnern und assets/ ausliefern,
# auch mit DEBUG=False und ohne collectstatic. Neue Dateien werden beim Serverstart
# eingelesen; im DEBUG-Modus sofort.
WHITENOISE_USE_FINDERS = True
WHITENOISE_AUTOREFRESH = DEBUG
# Default primary key field type
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field