Skip to content

Commit

Permalink
feat(sample_project): configure sample project to use bootstrap 5
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Jan 29, 2025
1 parent 6bc99fe commit aca77f6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sample_project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
# ui stuff used by APIS
"crispy_forms",
"crispy_bootstrap4",
"crispy_bootstrap5",
"django_filters",
"django_tables2",
"dal",
Expand Down Expand Up @@ -103,8 +104,9 @@
},
}

CRISPY_TEMPLATE_PACK = "bootstrap4"
DJANGO_TABLES2_TEMPLATE = "django_tables2/bootstrap4.html"
CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap5"
CRISPY_TEMPLATE_PACK = "bootstrap5"
DJANGO_TABLES2_TEMPLATE = "django_tables2/bootstrap5.html"

# for django spectacular to be able to generate the schema, we have to use its view inspector
REST_FRAMEWORK = {"DEFAULT_SCHEMA_CLASS": "drf_spectacular.openapi.AutoSchema"}
Expand Down

0 comments on commit aca77f6

Please sign in to comment.