crispy-forms-semanticUI-templates contains a set of templates that can be used to get
semantic UI formlayouts and error handling in django-crispy-forms
.
Tested with Semantic-UI 2.2.4.
-
Copy the
semantic-ui
folder to your main templates folder in your Django app. -
Install
django-crispy-forms
and setsemantic-ui
as yourCRISPY_TEMPLATE_PACK
in your projects'settings.py
:
CRISPY_TEMPLATE_PACK = 'semantic-ui'
Be warned its a work in progress!! Any help to complete it is appeciated.
-
pip install crispy-forms-semantic-ui
-
set
semantic-ui
as yourCRISPY_TEMPLATE_PACK
in your projects'settings.py
- add
crispy_forms_semantic_ui
to yourINSTALLED_APPS
:
INSTALLED_APPS = [
...
'crispy_forms',
'crispy_forms_semantic_ui',
...
]
- Add
semantic-ui
to the allowedCRISPY_ALLOWED_TEMPLATE_PACKS
array in yoursettings
:
CRISPY_ALLOWED_TEMPLATE_PACKS = ('bootstrap', 'uni_form', 'bootstrap3',
'bootstrap4', 'semantic-ui',)