diff --git a/config/__pycache__/settings.cpython-311.pyc b/config/__pycache__/settings.cpython-311.pyc index 5be02db..09dd1e1 100644 Binary files a/config/__pycache__/settings.cpython-311.pyc and b/config/__pycache__/settings.cpython-311.pyc differ diff --git a/config/__pycache__/urls.cpython-311.pyc b/config/__pycache__/urls.cpython-311.pyc index 7da66f3..a26755f 100644 Binary files a/config/__pycache__/urls.cpython-311.pyc and b/config/__pycache__/urls.cpython-311.pyc differ diff --git a/config/settings.py b/config/settings.py index 291d043..3f50b7f 100644 --- a/config/settings.py +++ b/config/settings.py @@ -180,3 +180,6 @@ if EMAIL_USE_SSL: # https://docs.djangoproject.com/en/5.2/ref/settings/#default-auto-field DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' + +LOGIN_REDIRECT_URL = 'home' +LOGOUT_REDIRECT_URL = 'home' diff --git a/config/urls.py b/config/urls.py index 417476b..53a5e10 100644 --- a/config/urls.py +++ b/config/urls.py @@ -18,9 +18,11 @@ from django.contrib import admin from django.urls import include, path from django.conf import settings from django.conf.urls.static import static +from core import views as core_views urlpatterns = [ path("admin/", admin.site.urls), + path("accounts/signup/", core_views.signup, name="signup"), path("accounts/", include("django.contrib.auth.urls")), path("", include("core.urls")), ] diff --git a/core/__pycache__/urls.cpython-311.pyc b/core/__pycache__/urls.cpython-311.pyc index 7c24991..cdedbe9 100644 Binary files a/core/__pycache__/urls.cpython-311.pyc and b/core/__pycache__/urls.cpython-311.pyc differ diff --git a/core/templates/base.html b/core/templates/base.html index 7bcaa84..2452000 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -23,7 +23,30 @@ - {% block content %}{% endblock %} + +
+ {% block content %}{% endblock %} +
diff --git a/core/templates/registration/login.html b/core/templates/registration/login.html new file mode 100644 index 0000000..a2aec78 --- /dev/null +++ b/core/templates/registration/login.html @@ -0,0 +1,10 @@ +{% extends "base.html" %} + +{% block content %} +

Login

+
+ {% csrf_token %} + {{ form.as_p }} + +
+{% endblock %} diff --git a/core/urls.py b/core/urls.py index a74aa34..34c5b71 100644 --- a/core/urls.py +++ b/core/urls.py @@ -4,6 +4,5 @@ from . import views urlpatterns = [ path("", views.home, name="home"), - path('signup/', views.signup, name='signup'), path('reflection/', views.reflection_view, name='reflection'), ]