📜  酥脆的形式 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:32.159000             🧑  作者: Mango

代码示例2
# In Settings
INSTALLED_APPS = [
    'crispy_forms',
]

# Very Bottom of Settings
CRISPY_TEMPLATE_PACK = 'bootstrap4'

# Top of HTML page
{% load crispy_forms_tags %}

# Apply styling to form
{{ form | crispy }}