From 67ea926c9640524f47c7ad5ffba7a70d01f6dc2f Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 21 Jul 2022 13:49:06 +0100 Subject: [PATCH] Add Bulma to settings --- app/settings.py | 4 +++- app/urls.py | 2 +- requirements.txt | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/settings.py b/app/settings.py index 6f64903..b59f1ba 100644 --- a/app/settings.py +++ b/app/settings.py @@ -39,8 +39,10 @@ INSTALLED_APPS = [ "django.contrib.staticfiles", "core", "crispy_forms", + "crispy_bulma", ] -CRISPY_TEMPLATE_PACK = "bootstrap4" +CRISPY_TEMPLATE_PACK = "bulma" +CRISPY_ALLOWED_TEMPLATE_PACKS = ("bulma",) MIDDLEWARE = [ "django.middleware.security.SecurityMiddleware", diff --git a/app/urls.py b/app/urls.py index c27a94c..4e89205 100644 --- a/app/urls.py +++ b/app/urls.py @@ -26,7 +26,7 @@ urlpatterns = [ path("", Home.as_view(), name="home"), path("callback", Callback.as_view(), name="callback"), path("billing/", Billing.as_view(), name="billing"), - path("order//", Order.as_view(), name="order"), + path("order//", Order.as_view(), name="order"), path( "success/", TemplateView.as_view(template_name="success.html"), name="success" ), diff --git a/requirements.txt b/requirements.txt index a400792..e2c90e5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,7 @@ django pre-commit django-crispy-forms +crispy-bulma opensearch-py stripe django-rest-framework