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:
parent
67b859a72f
commit
01ed8ac2f9
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ sitemaps = {
|
||||||
}
|
}
|
||||||
|
|
||||||
urlpatterns = [
|
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("sitemap.xml", cache_page(60 * 15)(sitemap), {"sitemaps": sitemaps}, name="sitemap"),
|
||||||
path('api/', include(router.urls)),
|
path('api/', include(router.urls)),
|
||||||
path('', views.IndexView.as_view(), name='index'),
|
path('', views.IndexView.as_view(), name='index'),
|
||||||
|
|
|
@ -11,7 +11,7 @@ class NoTrailingSlashMiddleware:
|
||||||
if (
|
if (
|
||||||
old_url.endswith('/')
|
old_url.endswith('/')
|
||||||
and not old_url.startswith("/admin")
|
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.startswith("/api")
|
||||||
and not old_url == "/"
|
and not old_url == "/"
|
||||||
):
|
):
|
||||||
|
|
Loading…
Reference in a new issue