16π
i am not free in terms of html styling with frontend frameworks like bootstrap.
There is a very easy solution to this: use django-crispy-forms
and regain all control of what your form looks like frontend. There is good documentation which includes parts on how to make your forms use bootstrap.
i am wondering why i should use it and what it would save me.
The question really is βdo you have any good reason not to use django.forms?β Because really, if you are not using django.forms you throw away a lot of djangoβs built-in security measures. Even within django itself (for instance the admin site) forms are used heavily. Thus I doubt your previous project really did not use django forms.
If you are building an API you might want to look at how tastypie or django rest framework go about validation data.
8π
From Django docs,
using the form library takes care of a number of common form-related tasks.
Using it, you can:
Display an HTML form with automatically generated form widgets.
Check submitted data against a set of validation rules.
Redisplay a form in the case of validation errors.
Convert submitted form data to the relevant Python data types.
For more info, please read that documentation
- Django : Convert UTC to local time zone in 'Views'
- Present data from python dictionary to django template.?
- Passing a user, request to forms
- FileField Size and Name in Template
- Django: How to access the display value of a ChoiceField in template given the actual value and the choices?
- Django-channels: No route found for path