项目作者: acidjunk

项目描述 :
crispy-forms-semantic UI-templates
高级语言: HTML
项目地址: git://github.com/acidjunk/crispy-forms-semanticUI-templates.git
创建时间: 2015-07-03T21:21:00Z
项目社区:https://github.com/acidjunk/crispy-forms-semanticUI-templates

开源协议:GNU General Public License v3.0

下载


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

  1. Copy the semantic-ui folder to your main templates folder in your Django app.

  2. Install django-crispy-forms and set semantic-ui as your CRISPY_TEMPLATE_PACK in your projects’ settings.py:

  1. CRISPY_TEMPLATE_PACK = 'semantic-ui'

Be warned its a work in progress!!
Any help to complete it is appeciated.

PIP based Install

  1. pip install crispy-forms-semantic-ui

  2. set semantic-ui as your CRISPY_TEMPLATE_PACK in your projects’ settings.py

Generic install steps

  1. add crispy_forms_semantic_ui to your INSTALLED_APPS:
  1. INSTALLED_APPS = [
  2. ...
  3. 'crispy_forms',
  4. 'crispy_forms_semantic_ui',
  5. ...
  6. ]
  1. Add semantic-ui to the allowed CRISPY_ALLOWED_TEMPLATE_PACKS array in your settings:
  1. CRISPY_ALLOWED_TEMPLATE_PACKS = ('bootstrap', 'uni_form', 'bootstrap3',
  2. 'bootstrap4', 'semantic-ui',)