From 39f9f77b0619301f61350b37bccca66892b5d0e8 Mon Sep 17 00:00:00 2001 From: s424548 Date: Fri, 25 Nov 2022 18:18:25 +0100 Subject: [PATCH] "login screen" --- FinTech_app/settings.py | 2 ++ FinTech_app/urls.py | 3 ++- templates/registration/login.html | 7 +++++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 templates/registration/login.html diff --git a/FinTech_app/settings.py b/FinTech_app/settings.py index c3473e5..b36822e 100644 --- a/FinTech_app/settings.py +++ b/FinTech_app/settings.py @@ -122,3 +122,5 @@ STATIC_URL = 'static/' # https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' + +LOGIN_REDIRECT_URL = "/" \ No newline at end of file diff --git a/FinTech_app/urls.py b/FinTech_app/urls.py index a668007..3e2f55c 100644 --- a/FinTech_app/urls.py +++ b/FinTech_app/urls.py @@ -14,8 +14,9 @@ Including another URLconf 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ from django.contrib import admin -from django.urls import path +from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), + path("accounts/", include("django.contrib.auth.urls")), ] diff --git a/templates/registration/login.html b/templates/registration/login.html new file mode 100644 index 0000000..1ba196c --- /dev/null +++ b/templates/registration/login.html @@ -0,0 +1,7 @@ + +

Log In

+
+ {% csrf_token %} + {{ form.as_p }} + +
\ No newline at end of file