mirror of
https://github.com/Findus23/acronomy.git
synced 2024-09-11 06:23:44 +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 = [
|
||||
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'),
|
||||
|
|
|
@ -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 == "/"
|
||||
):
|
||||
|
|
Loading…
Reference in a new issue