phase2: add modular apps, auth scaffolding, and base template routing
This commit is contained in:
@ -1,9 +1,14 @@
|
||||
from django.contrib.auth.mixins import LoginRequiredMixin
|
||||
from django.views.generic import TemplateView
|
||||
from django.http import JsonResponse
|
||||
from django.shortcuts import render
|
||||
|
||||
|
||||
def home(request):
|
||||
return render(request, "home.html")
|
||||
class HomeView(TemplateView):
|
||||
template_name = "core/home.html"
|
||||
|
||||
|
||||
class DashboardView(LoginRequiredMixin, TemplateView):
|
||||
template_name = "core/dashboard.html"
|
||||
|
||||
|
||||
def health(request):
|
||||
|
||||
Reference in New Issue
Block a user