django2.2: fix urls and adapt them to new format

This commit is contained in:
klmp200 committed 2019-10-08 22:46:02 +02:00
1 parent 12b6f0d488
commit df531198c9
3 files changed
+26 -44

No files matched your search

+1 -1
View File
@@ -50,7 +50,7 @@ router.register(
urlpatterns = [
# API
re_path(r"^", include(router.urls)),
re_path(r"^login/", include("rest_framework.re_paths", namespace="rest_framework")),
re_path(r"^login/", include("rest_framework.urls", namespace="rest_framework")),
re_path(r"^markdown$", RenderMarkdown, name="api_markdown"),
re_path(r"^mailings$", FetchMailingLists, name="mailings_fetch"),
]