Skip to content

Commit

Permalink
fixing1
Browse files Browse the repository at this point in the history
  • Loading branch information
skoval7 committed Nov 19, 2023
1 parent 5f60afc commit c52db86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions taxi_service/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
# SECURITY WARNING: don"t run with debug turned on in production!
DEBUG = True
LOGIN_REDIRECT_URL = "/"
LOGIN_URL = "login"

ALLOWED_HOSTS = []

Expand Down
4 changes: 2 additions & 2 deletions taxi_service/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@


urlpatterns = [
path("login/", auth_views.LoginView.as_view()),
path("logout/", auth_views.LogoutView.as_view()),
path("login/", auth_views.LoginView.as_view(), name="login"),
path("logout/", auth_views.LogoutView.as_view(), name="logout"),
path("admin/", admin.site.urls),
path("", include("taxi.urls", namespace="taxi")),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)

0 comments on commit c52db86

Please sign in to comment.