Skip to content

Commit

Permalink
Merge pull request #313 from wklken/ft_upgrade_py3_test
Browse files Browse the repository at this point in the history
Ft upgrade py3 test
  • Loading branch information
wklken authored Mar 25, 2021
2 parents 514c001 + 6d99d23 commit ee95dfa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions paas2/paas/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,11 @@
# for upload/download
# urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
from account.decorators import login_exempt # noqa
import django.views # noqa
from django.views.static import serve # noqa

static_serve = login_exempt(django.views.static.serve)
# import django.views # noqa

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 ee95dfa

Please sign in to comment.