Compare commits

..

No commits in common. "b07b223729850cdf45eee3ec7faab04dce92f4a5" and "9a8d9f9c60eaf7e873a18dc22b130479f458898b" have entirely different histories.

11 changed files with 0 additions and 40 deletions

View File

@ -44,7 +44,6 @@ INSTALLED_APPS = [
"django.contrib.messages",
"django.contrib.staticfiles",
"core",
"dashboard",
]
MIDDLEWARE = [
@ -132,7 +131,6 @@ STATIC_ROOT = BASE_DIR / "static"
# User model and authentication
AUTH_USER_MODEL = "accounts.User"
LOGIN_REDIRECT_URL = "dashboard:dashboard"
LOGOUT_REDIRECT_URL = "core:homepage"

View File

@ -22,5 +22,4 @@ urlpatterns = [
path("admin/", admin.site.urls),
path("", include("core.urls", namespace="core")),
path("accounts/", include("accounts.urls")),
path("dashboard/", include("dashboard.urls", namespace="dashboard")),
]

View File

View File

@ -1,3 +0,0 @@
from django.contrib import admin
# Register your models here.

View File

@ -1,6 +0,0 @@
from django.apps import AppConfig
class DashboardConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "dashboard"

View File

@ -1,3 +0,0 @@
from django.db import models
# Create your models here.

View File

@ -1,5 +0,0 @@
{% extends 'base.html' %}
{% block content %}
<h1>Dashboard</h1>
{% endblock %}

View File

@ -1,3 +0,0 @@
from django.test import TestCase
# Create your tests here.

View File

@ -1,9 +0,0 @@
from django.urls import path
from .views import Dashboard
app_name = "dashboard"
urlpatterns = [
path("", Dashboard.as_view(), name="dashboard"),
]

View File

@ -1,8 +0,0 @@
from django.contrib.auth.decorators import login_required
from django.utils.decorators import method_decorator
from django.views.generic import TemplateView
@method_decorator(login_required, name="dispatch")
class Dashboard(TemplateView):
template_name = "dashboard/dashboard.html"