crispy-forms-semanticUI-templates
crispy-forms-semanticUI-templates copied to clipboard
crispy-forms-semanticUI-templates
trafficstars
crispy-forms-semanticUI-templates
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.
Manual Install
-
Copy the
semantic-uifolder to your main templates folder in your Django app. -
Install
django-crispy-formsand setsemantic-uias yourCRISPY_TEMPLATE_PACKin your projects'settings.py:
CRISPY_TEMPLATE_PACK = 'semantic-ui'
Be warned its a work in progress!! Any help to complete it is appeciated.
PIP based Install
-
pip install crispy-forms-semantic-ui -
set
semantic-uias yourCRISPY_TEMPLATE_PACKin your projects'settings.py
Generic install steps
- add
crispy_forms_semantic_uito yourINSTALLED_APPS:
INSTALLED_APPS = [
...
'crispy_forms',
'crispy_forms_semantic_ui',
...
]
- Add
semantic-uito the allowedCRISPY_ALLOWED_TEMPLATE_PACKSarray in yoursettings:
CRISPY_ALLOWED_TEMPLATE_PACKS = ('bootstrap', 'uni_form', 'bootstrap3',
'bootstrap4', 'semantic-ui',)