root: fix incorrect MEDIA_URL
This commit is contained in:
parent
7f40c89ade
commit
7a481396c6
|
@ -339,7 +339,7 @@ if not DEBUG and _ERROR_REPORTING:
|
||||||
# https://docs.djangoproject.com/en/2.1/howto/static-files/
|
# https://docs.djangoproject.com/en/2.1/howto/static-files/
|
||||||
|
|
||||||
STATIC_URL = "/static/"
|
STATIC_URL = "/static/"
|
||||||
MEDIA_URL = "/"
|
MEDIA_URL = "/media/"
|
||||||
|
|
||||||
|
|
||||||
structlog.configure_once(
|
structlog.configure_once(
|
||||||
|
|
|
@ -65,6 +65,6 @@ if settings.DEBUG:
|
||||||
[
|
[
|
||||||
path("-/debug/", include(debug_toolbar.urls)),
|
path("-/debug/", include(debug_toolbar.urls)),
|
||||||
]
|
]
|
||||||
+ static("/media/", document_root=settings.MEDIA_ROOT)
|
+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||||
+ urlpatterns
|
+ urlpatterns
|
||||||
)
|
)
|
||||||
|
|
Reference in a new issue