root: fix incorrect MEDIA_URL

This commit is contained in:
Jens Langhammer 2020-11-24 11:50:27 +01:00
parent 7f40c89ade
commit 7a481396c6
2 changed files with 2 additions and 2 deletions

View File

@ -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(

View File

@ -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
)