mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-10 09:02:20 +01:00
Marietje 4.1: Addition of Django REST framework, Swagger, Dark mode and updates to Django and Bootstrap
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
from django.shortcuts import render
|
||||
from django.contrib.auth.decorators import login_required
|
||||
from django.contrib.auth.mixins import LoginRequiredMixin
|
||||
from django.views.generic import TemplateView
|
||||
|
||||
|
||||
@login_required
|
||||
def index(request):
|
||||
return render(request, 'queues/queue.html')
|
||||
class QueueView(LoginRequiredMixin, TemplateView):
|
||||
template_name = "queues/queue.html"
|
||||
|
||||
Reference in New Issue
Block a user