diff --git a/config/settings.py b/config/settings.py index 1c382c2..68ca2c4 100644 --- a/config/settings.py +++ b/config/settings.py @@ -44,6 +44,7 @@ INSTALLED_APPS = [ "django.contrib.messages", "django.contrib.staticfiles", "core", + "dashboard", ] MIDDLEWARE = [ @@ -131,6 +132,7 @@ STATIC_ROOT = BASE_DIR / "static" # User model and authentication AUTH_USER_MODEL = "accounts.User" +LOGIN_REDIRECT_URL = "dashboard:dashboard" LOGOUT_REDIRECT_URL = "core:homepage" diff --git a/config/urls.py b/config/urls.py index d5df533..222ea61 100644 --- a/config/urls.py +++ b/config/urls.py @@ -22,4 +22,5 @@ urlpatterns = [ path("admin/", admin.site.urls), path("", include("core.urls", namespace="core")), path("accounts/", include("accounts.urls")), + path("dashboard/", include("dashboard.urls", namespace="dashboard")), ] diff --git a/dashboard/__init__.py b/dashboard/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/dashboard/admin.py b/dashboard/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/dashboard/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/dashboard/apps.py b/dashboard/apps.py new file mode 100644 index 0000000..db15b45 --- /dev/null +++ b/dashboard/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class DashboardConfig(AppConfig): + default_auto_field = "django.db.models.BigAutoField" + name = "dashboard" diff --git a/dashboard/migrations/__init__.py b/dashboard/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/dashboard/models.py b/dashboard/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/dashboard/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/dashboard/templates/dashboard/dashboard.html b/dashboard/templates/dashboard/dashboard.html new file mode 100644 index 0000000..e1654ea --- /dev/null +++ b/dashboard/templates/dashboard/dashboard.html @@ -0,0 +1,5 @@ +{% extends 'base.html' %} + +{% block content %} +