diff --git a/paas2/paas/urls.py b/paas2/paas/urls.py index 42993696d..00ecd1351 100644 --- a/paas2/paas/urls.py +++ b/paas2/paas/urls.py @@ -90,9 +90,12 @@ # for upload/download # urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) from account.decorators import login_exempt # noqa -import django.views # noqa -static_serve = login_exempt(django.views.static.serve) +# import django.views # noqa +import django.contrib # noqa + +# static_serve = login_exempt(django.views.static.serve) +static_serve = login_exempt(django.contrib.staticfiles.views.serve) urlpatterns.append(url(r"^media/(?P.*)$", static_serve, {"document_root": settings.MEDIA_ROOT})) # download for default resources