Skip to content

Commit

Permalink
maybe a bug of import compile
Browse files Browse the repository at this point in the history
  • Loading branch information
wklken committed Mar 25, 2021
1 parent 57fde0a commit 6d99d23
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions paas2/paas/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,11 @@
# for upload/download
# urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
from account.decorators import login_exempt # noqa
from django.views.static import serve # noqa

# 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)
static_serve = login_exempt(serve)
urlpatterns.append(url(r"^media/(?P<path>.*)$", static_serve, {"document_root": settings.MEDIA_ROOT}))

# download for default resources
Expand Down

0 comments on commit 6d99d23

Please sign in to comment.