Top "Django-forms" questions

Specific questions related to forms with the Django web framework

How to render Django form errors not in a UL?

The errors in my Django form are rendering in a UL as per the docs... Django {{ form.non_field_errors }} …

django django-forms
Django: How to override form.save()?

My model has quite a few boolean fields. I've broken these up into 3 sets which I'm rendering as a MultipleChoiceField …

django django-forms
Form field description in django admin

How to add hint for the form field in django admin like in next example? (here: URL and Content descriptions …

django django-admin django-forms
Empty Request.FILES with Django Upload forms

Trying to use a very simple form to upload a file into a new class instance. I am expecting to …

django django-forms
Prepopulate Django (non-Model) Form

I'm trying to prepopulate the data in my django form based on some information, but NOT using ModelForm, so I …

django django-forms
Django ModelForm instance with custom queryset for a specific field

I have a model not unlike the following: class Bike(models.Model): made_at = models.ForeignKey(Factory) added_on = models.…

django django-forms modelform
Django's forms.Form vs forms.ModelForm

Could anyone explain to me similarities and differences of Django's forms.Form & forms.ModelForm?

django django-forms
Inject errors into already validated form?

After my form.Form validates the user input values I pass them to a separate (external) process for further processing. …

django django-forms
Max image size on file upload

I have an ImageField in my form. How would I enforce a file size min/max, something like -- image = …

django image-processing django-forms
Read-Only Field in Django Form

How do I set a field to read-only in a Django form? I know how to disable a field but …

python django forms django-forms readonly