Force media static files option

pull/840/head
Piero Toffanin 2020-03-25 06:30:44 -04:00
rodzic b14209dd88
commit 86fe256a39
2 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -75,6 +75,9 @@ PLUGINS_BLACKLIST = [
#'measure',
]
# Serve media static files URLs even in production
FORCE_MEDIA_STATICFILES = False
# Application definition
INSTALLED_APPS = [

Wyświetl plik

@ -28,7 +28,7 @@ urlpatterns = [
url(r'^admin/', admin.site.urls),
]
if settings.DEBUG:
if settings.DEBUG or settings.FORCE_MEDIA_STATICFILES:
urlpatterns += [
# Expose imagekit generated files and settings file uploads
url(r'^media/CACHE/(?P<path>.*)$', serve, {