added basic dashboard template
parent
59c0f0cca2
commit
f27f590b7b
|
|
@ -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 %}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
from django.urls import path
|
||||
|
||||
from .views import Dashboard
|
||||
|
||||
app_name = "dashboard"
|
||||
|
||||
urlpatterns = [
|
||||
path("", Dashboard.as_view(), name="dashboard"),
|
||||
]
|
||||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue