16 lines
374 B
Python
16 lines
374 B
Python
from django.contrib.auth.mixins import LoginRequiredMixin
|
|
from django.views.generic import TemplateView
|
|
from django.http import JsonResponse
|
|
|
|
|
|
class HomeView(TemplateView):
|
|
template_name = "core/home.html"
|
|
|
|
|
|
class DashboardView(LoginRequiredMixin, TemplateView):
|
|
template_name = "core/dashboard.html"
|
|
|
|
|
|
def health(request):
|
|
return JsonResponse({"status": "ok"})
|