Skip to content

Commit

Permalink
fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
skoval7 committed Nov 19, 2023
1 parent 0f92aa4 commit 5f60afc
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
Binary file removed db.sqlite3
Binary file not shown.
1 change: 0 additions & 1 deletion taxi_service/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
# 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(), name="login"),
path("logout/", auth_views.LogoutView.as_view(), name="logout"),
path("login/", auth_views.LoginView.as_view()),
path("logout/", auth_views.LogoutView.as_view()),
path("admin/", admin.site.urls),
path("", include("taxi.urls", namespace="taxi")),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
2 changes: 1 addition & 1 deletion templates/registration/login.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{% extends "admin/login.html" %}
{% extends "admin/login.html" %}
2 changes: 1 addition & 1 deletion templates/registration/logout.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
{% block content %}
<p>Logged out</p>
<a href="{% url 'login' %}">Press to login</a>
{% endblock %}
{% endblock %}

0 comments on commit 5f60afc

Please sign in to comment.