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

This commit is contained in:
2019-10-06 00:06:02 +02:00
parent 12b6f0d488
commit df531198c9
3 changed files with 26 additions and 44 deletions

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"),
]