diff --git a/db.sqlite3 b/db.sqlite3 deleted file mode 100644 index db38754d..00000000 Binary files a/db.sqlite3 and /dev/null differ diff --git a/taxi_service/settings.py b/taxi_service/settings.py index 37713182..cc0368eb 100644 --- a/taxi_service/settings.py +++ b/taxi_service/settings.py @@ -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 = [] diff --git a/taxi_service/urls.py b/taxi_service/urls.py index 076476a0..2d314449 100644 --- a/taxi_service/urls.py +++ b/taxi_service/urls.py @@ -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) diff --git a/templates/registration/login.html b/templates/registration/login.html index 613c3c9c..5e29bc53 100644 --- a/templates/registration/login.html +++ b/templates/registration/login.html @@ -1 +1 @@ -{% extends "admin/login.html" %} \ No newline at end of file +{% extends "admin/login.html" %} diff --git a/templates/registration/logout.html b/templates/registration/logout.html index ffa5aaed..a2c93fca 100644 --- a/templates/registration/logout.html +++ b/templates/registration/logout.html @@ -3,4 +3,4 @@ {% block content %}
Logged out
Press to login -{% endblock %} \ No newline at end of file +{% endblock %}