- Author:
- sourabhsinha396
- Posted:
- April 27, 2020
- Language:
- Python
- Version:
- 2.1
- Score:
- 1 (after 1 ratings)
Getting started with crispy forms
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | >pip install django-crispy-forms
`Once installed add crispy_forms to your INSTALLED_APPS in settings.py:`
INSTALLED_APPS = (
...
'crispy_forms',
)
CRISPY_TEMPLATE_PACK = 'bootstrap'
{% crispy form %}
<form action="{% url 'submit_survey' %}" class="uniForm" method="post">
{% crispy first_form %}
{% crispy second_form %}
</form>
|
More like this
- Form field with fixed value by roam 5 days, 13 hours ago
- New Snippet! by Antoliny0919 1 week, 5 days ago
- Add Toggle Switch Widget to Django Forms by OgliariNatan 3 months ago
- get_object_or_none by azwdevops 6 months, 3 weeks ago
- Mask sensitive data from logger by agusmakmun 8 months, 2 weeks ago
Comments
Template to getting started with Django crispy forms
#
Please login first before commenting.