Implement managing hooks

This commit is contained in:
2022-10-12 07:22:22 +01:00
parent 83808dfa52
commit 7118af5d3c
10 changed files with 157 additions and 39 deletions

View File

@@ -44,7 +44,10 @@ INSTALLED_APPS = [
# "django_tables2_bulma_template",
]
CRISPY_TEMPLATE_PACK = "bulma"
CRISPY_ALLOWED_TEMPLATE_PACKS = ("bulma",)
CRISPY_ALLOWED_TEMPLATE_PACKS = (
"uni_form",
"bulma",
)
DJANGO_TABLES2_TEMPLATE = "django-tables2/bulma.html"
MIDDLEWARE = [

View File

@@ -41,8 +41,7 @@ urlpatterns = [
path("admin/", admin.site.urls),
path("accounts/", include("django.contrib.auth.urls")),
path("accounts/signup/", base.Signup.as_view(), name="signup"),
# path("demo/modal/", demo.DemoModal.as_view(), name="modal"),
# path("demo/widget/", demo.DemoWidget.as_view(), name="widget"),
# path("demo/window/", demo.DemoWindow.as_view(), name="window"),
path("hooks/<str:type>/", hooks.Hooks.as_view(), name="hooks"),
path("hooks/modal/add/", hooks.AddHook.as_view(), name="add-hook"),
path("hooks/modal/add/<str:name>/", hooks.AddHook.as_view(), name="add-hook"),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)