added basic dashboard template

dev
Calum Andrew Morrell 2025-11-05 16:26:07 +00:00
parent 59c0f0cca2
commit f27f590b7b
3 changed files with 22 additions and 2 deletions

View File

@ -0,0 +1,6 @@
{% extends 'base.html' %}
{% block content %}
<h1>URL Shortening Dashboard</h1>
<p>Not yet. You'll need access to the administration backend to do anything for now!</p>
{% endblock %}

9
dashboard/urls.py Normal file
View File

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

View File

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