在 Uikit 中使用 django-crispy-forms

Use django-crispy-forms with Uikit

我正在用 django 建立一个网站,我正在使用 uikit 3 作为前端框架,有什么方法可以用 uikit 来设计 django-crispy-forms 的样式吗? 使用 bootstrap 我可以将这一行放在设置文件中:

CRISPY_TEMPLATE_PACK = 'bootstrap4'

他们有这样的选择来使用 uikit 吗?

您应该始终检查您使用的软件包的文档:

https://django-crispy-forms.readthedocs.io/en/latest/install.html#template-packs

Since version 1.1.0, django-crispy-forms has built-in support for different CSS frameworks, known as template packs within django-crispy-forms:

  • bootstrap Bootstrap is crispy-forms’s default template pack, version 2 of the popular simple and flexible HTML, CSS, and Javascript for user interfaces from Twitter.
  • bootstrap3 Twitter Bootstrap version 3.
  • bootstrap4 Alpha support for Twitter Bootstrap version 4, which is still in Alpha.
  • uni-form Uni-form is a nice looking, well structured, highly customizable, accessible and usable forms.
  • foundation Foundation In the creator’s words, “The most advanced responsive front-end framework in the world.” This template pack is externally available through crispy-forms-foundation

我找到了这个但是没有记录。

https://pypi.org/project/crispy-forms-uikit/