1
0
Fork 0
mirror of https://github.com/Findus23/acronomy.git synced 2024-09-19 15:33:45 +02:00

fix login urls

This commit is contained in:
Lukas Winkler 2020-07-02 21:49:48 +02:00
parent 67b859a72f
commit 01ed8ac2f9
Signed by: lukas
GPG key ID: 54DE4D798D244853
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ sitemaps = {
}
urlpatterns = [
path('', include('django.contrib.auth.urls')),
path('account/', include('django.contrib.auth.urls')),
path("sitemap.xml", cache_page(60 * 15)(sitemap), {"sitemaps": sitemaps}, name="sitemap"),
path('api/', include(router.urls)),
path('', views.IndexView.as_view(), name='index'),

View file

@ -11,7 +11,7 @@ class NoTrailingSlashMiddleware:
if (
old_url.endswith('/')
and not old_url.startswith("/admin")
and not old_url.startswith("/login")
and not old_url.startswith("/account")
and not old_url.startswith("/api")
and not old_url == "/"
):