summaryrefslogtreecommitdiffstats
path: root/takahe/urls.py
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-17 19:31:00 -0700
committerAndrew Godwin2022-11-17 17:55:50 -0700
commit2a3690d1c148da5dd799052403ba7290e1fb7de0 (patch)
tree6a1c92cdbea7ee2e307a99dd114610c83b33f82a /takahe/urls.py
parent291d7e404e12e1d017403242f8ed199046f0904c (diff)
downloadtakahe-2a3690d1c148da5dd799052403ba7290e1fb7de0.tar.gz
takahe-2a3690d1c148da5dd799052403ba7290e1fb7de0.tar.bz2
takahe-2a3690d1c148da5dd799052403ba7290e1fb7de0.zip
Return images and summary in actor
Diffstat (limited to 'takahe/urls.py')
-rw-r--r--takahe/urls.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/takahe/urls.py b/takahe/urls.py
index c2d9d6b..0b23d7d 100644
--- a/takahe/urls.py
+++ b/takahe/urls.py
@@ -1,5 +1,3 @@
-import re
-
from django.conf import settings as djsettings
from django.contrib import admin as djadmin
from django.urls import path, re_path
@@ -99,7 +97,7 @@ urlpatterns = [
path("djadmin/", djadmin.site.urls),
# Media files
re_path(
- r"^%s(?P<path>.*)$" % re.escape(djsettings.MEDIA_URL.lstrip("/")),
+ r"^media/(?P<path>.*)$",
serve,
kwargs={"document_root": djsettings.MEDIA_ROOT},
),