Update tailwind to v3, various wangling
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user