Update tailwind to v3, various wangling

This commit is contained in:
2023-05-16 17:48:25 +01:00
parent c55577e04e
commit 57c730a2cf
14 changed files with 6821 additions and 183615 deletions

View File

@@ -11,6 +11,8 @@ https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib import Path
from django.forms.renderers import TemplatesSetting
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
@@ -35,6 +37,7 @@ if DEBUG:
INSTALLED_APPS = [
# Django
'django.forms',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
@@ -133,3 +136,8 @@ USE_TZ = True
STATIC_URL = '/static/'
TAILWIND_APP_NAME = 'theme'
class CustomFormRenderer(TemplatesSetting):
form_template_name = "custom_form.html"
FORM_RENDERER = "core.settings.CustomFormRenderer"