diff --git a/albercan_backend/settings.py b/albercan_backend/settings.py index 6e2ad27..6568e66 100644 --- a/albercan_backend/settings.py +++ b/albercan_backend/settings.py @@ -41,7 +41,8 @@ "django.contrib.staticfiles", "people", "pet", - "structure" + "structure", + "authentication" ] MIDDLEWARE = [ @@ -143,3 +144,6 @@ # https://docs.djangoproject.com/en/5.0/ref/settings/#default-auto-field DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField" + +LOGIN_REDIRECT_URL = "/index" +LOGOUT_REDIRECT_URL = "/auth/login" diff --git a/albercan_backend/static/css/navbar.css b/albercan_backend/static/css/navbar.css index 726198b..7e890b1 100644 --- a/albercan_backend/static/css/navbar.css +++ b/albercan_backend/static/css/navbar.css @@ -71,4 +71,13 @@ header .navbar .dropdown-menu .dropdown-item.active:hover { header .navbar .dropdown-menu .dropdown-item.active { background: #bc5148; color: #fff; +} + +#logout-form { + display: inline; +} +#logout-form button { + background: none; + border: none; + cursor: pointer; } \ No newline at end of file diff --git a/albercan_backend/templates/base.html b/albercan_backend/templates/base.html index 4fdfd01..d68a3c2 100644 --- a/albercan_backend/templates/base.html +++ b/albercan_backend/templates/base.html @@ -20,6 +20,7 @@ + {% block styles %}{% endblock %} diff --git a/albercan_backend/templates/navbar.html b/albercan_backend/templates/navbar.html index c15d4cd..9805d30 100644 --- a/albercan_backend/templates/navbar.html +++ b/albercan_backend/templates/navbar.html @@ -1,7 +1,7 @@