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")), ]