M
M
maxclax2014-12-19 13:36:33
Django
maxclax, 2014-12-19 13:36:33

Templates for form fields, how to implement in Django?

The application has forms and there are many of them. But the conclusion is the same everywhere. I need to display the form in my style
when displaying in the {{ form }} template .
That is, checkboxes, inputs, selects have a different layout.
After reading this:
djbook.ru/rel1.7/topics/forms/#reusable-form-templates
, I don’t understand how to make divisions in the form_snippet.html itself, how which widget should look like.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey K, 2014-12-19
@mututunus

Maybe https://github.com/kmike/django-widget-tweaks/ will help

I
Ilya, 2014-12-19
@FireGM

django-crispy-form will help, I think. Everything can be configured there: classes, styles, buttons, labels, etc. A chic thing. I found out about it a month ago.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question