Begin implementing settings page

This commit is contained in:
Mark Veidemanis 2022-10-12 07:22:22 +01:00
parent b8f5d5a1cc
commit 5c67a3a707
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
2 changed files with 8 additions and 0 deletions

View File

@ -2,7 +2,15 @@ import uuid
from django.shortcuts import render from django.shortcuts import render
from django.views import View from django.views import View
from django.http import HttpResponseBadRequest
class OpenSettings(View):
allowed_types = ["modal", "widget", "window"]
async def get(self, request, type):
if type not in self.allowed_types:
return HttpResponseBadRequest
#template_name =
class DemoModal(View): class DemoModal(View):
template_name = "modals/modal.html" template_name = "modals/modal.html"