diff --git a/aleksis/core/settings.py b/aleksis/core/settings.py index f1273c67042037b0b95f29b1430949993e8d270c..3a085a7848fc4b562dac11b925a13195f903223b 100644 --- a/aleksis/core/settings.py +++ b/aleksis/core/settings.py @@ -66,7 +66,7 @@ DEBUG_TOOLBAR_PANELS = [ UWSGI = { "module": "aleksis.core.wsgi", } -UWSGI_SERVE_STATIC = _settings.get("dev.uwsgi.serve_static", DEBUG) +UWSGI_SERVE_STATIC = True ALLOWED_HOSTS = _settings.get("http.allowed_hosts", []) diff --git a/aleksis/core/urls.py b/aleksis/core/urls.py index fc11daf88e3cdbddd8341362a26d7a1d794a07bd..cd11d664845edfd9d35d553a90476bc6c6b5b0f6 100644 --- a/aleksis/core/urls.py +++ b/aleksis/core/urls.py @@ -199,10 +199,6 @@ urlpatterns = [ ), ] -# Serve static files from STATIC_ROOT to make it work with runserver -# collectstatic is also required in development for this -urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) - # Serve media files from MEDIA_ROOT to make it work with runserver urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)