diff --git a/passbook/root/settings.py b/passbook/root/settings.py index bebe9f767..0dff2c367 100644 --- a/passbook/root/settings.py +++ b/passbook/root/settings.py @@ -339,7 +339,7 @@ if not DEBUG and _ERROR_REPORTING: # https://docs.djangoproject.com/en/2.1/howto/static-files/ STATIC_URL = "/static/" -MEDIA_URL = "/" +MEDIA_URL = "/media/" structlog.configure_once( diff --git a/passbook/root/urls.py b/passbook/root/urls.py index 215c80ea2..1f919c0d7 100644 --- a/passbook/root/urls.py +++ b/passbook/root/urls.py @@ -65,6 +65,6 @@ if settings.DEBUG: [ path("-/debug/", include(debug_toolbar.urls)), ] - + static("/media/", document_root=settings.MEDIA_ROOT) + + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) + urlpatterns )