Compare commits
No commits in common. "e52ef3e5ebb670873d04995883a146084341758c" and "9a8d9f9c60eaf7e873a18dc22b130479f458898b" have entirely different histories.
e52ef3e5eb
...
9a8d9f9c60
|
|
@ -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"
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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")),
|
||||
]
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class DashboardConfig(AppConfig):
|
||||
default_auto_field = "django.db.models.BigAutoField"
|
||||
name = "dashboard"
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{% extends 'base.html' %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Dashboard</h1>
|
||||
{% endblock %}
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
from django.urls import path
|
||||
|
||||
from .views import Dashboard
|
||||
|
||||
app_name = "dashboard"
|
||||
|
||||
urlpatterns = [
|
||||
path("", Dashboard.as_view(), name="dashboard"),
|
||||
]
|
||||
|
|
@ -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"
|
||||
Loading…
Reference in New Issue