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