root: fix incorrect MEDIA_URL
This commit is contained in:
		| @ -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 New Issue
	
	Block a user
	 Jens Langhammer
					Jens Langhammer