From da78060415750071d91e508a1c3ac9446eeb6c84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhn-Vitus=20Sa=C3=9F?= Date: Wed, 23 Apr 2025 10:45:15 +0200 Subject: [PATCH] Serve media in Production --- django/core/urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/core/urls.py b/django/core/urls.py index bd7ee73..c874da9 100644 --- a/django/core/urls.py +++ b/django/core/urls.py @@ -28,5 +28,5 @@ urlpatterns = [ path('components/', include('components.urls')) ] -if settings.DEBUG: - urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) \ No newline at end of file +# Stelle Mediendateien auch im Produktionsmodus bereit +urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) \ No newline at end of file