Login

Crispy Form

Author:
sourabhsinha396
Posted:
April 27, 2020
Language:
Python
Version:
2.1
Tags:
crispy-forms
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

  1. Automatically setup raw_id_fields ForeignKey & OneToOneField by agusmakmun 6 months ago
  2. Crispy Form by sourabhsinha396 7 months ago
  3. ReadOnlySelect by mkoistinen 7 months, 1 week ago
  4. Verify events sent to your webhook endpoints by santos22 8 months, 1 week ago
  5. Django Language Middleware by agusmakmun 8 months, 2 weeks ago

Comments

sourabhsinha396 (on April 27, 2020):

Template to getting started with Django crispy forms

#

Please login first before commenting.