#django forms look ugly even after changing it using widgets

17 messages · Page 1 of 1 (latest)

jovial fossil
#

how can I change this? do I need to make a custom template for each form, or is there an easier solution ?
in this case I would like the text "description" to be <h4> instead of <label> like it is now

    <form action={% url 'create' %} method="post">
        {% csrf_token %}

        {{ form_inputs }}
        <button type="submit">Crate</button>

    </form>
visual echo
#

search for crispy-forms

#

with actual example

jovial fossil
visual echo
#

there you can customize it as you like

#

with styling and such

jovial fossil
visual echo
#

you can see the photos too in the articles, how it looks

daring stag
#

BS5+ crispy forms and u will have very good result
even u could customize the style of inputs in case of crispy forms

visual echo
#

with tailwind too

daring stag
#

personally don't like tailwind, the html tag will be to the end of the screen 🤣🤣🤣
and I get used to BS5 classes.
but in general I always use crispy with any django project

eager garden
jovial fossil