From e4f2cd1fe49306e8e45869047339fd08a2134b73 Mon Sep 17 00:00:00 2001 From: Calum Andrew Morrell Date: Wed, 5 Nov 2025 16:10:51 +0000 Subject: [PATCH] linked core app into project --- config/settings.py | 5 +++-- config/urls.py | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/settings.py b/config/settings.py index 68fafc1..3adc0ff 100644 --- a/config/settings.py +++ b/config/settings.py @@ -43,6 +43,7 @@ INSTALLED_APPS = [ "django.contrib.sessions", "django.contrib.messages", "django.contrib.staticfiles", + "core.apps.CoreConfig", ] MIDDLEWARE = [ @@ -130,8 +131,8 @@ STATIC_ROOT = BASE_DIR / "static" # User model and authentication AUTH_USER_MODEL = "accounts.User" -# LOGIN_REDIRECT_URL = '' -# LOGOUT_REDIRECT_URL = '' +# LOGIN_REDIRECT_URL = 'dashboard:dashboard' +LOGOUT_REDIRECT_URL = "core:homepage" # Default primary key field type diff --git a/config/urls.py b/config/urls.py index 9245fc1..d5df533 100644 --- a/config/urls.py +++ b/config/urls.py @@ -20,5 +20,6 @@ from django.urls import include, path urlpatterns = [ path("admin/", admin.site.urls), + path("", include("core.urls", namespace="core")), path("accounts/", include("accounts.urls")), ]