Posts tagged with "forms" (16)
FastHTML form error handling
A pattern I have been exploring for handling form errors in FastHTML.
Django Slug + ID URL Design
How to combine slugs and IDs to make a a human readable unique URL design.
Adding Django form instance attributes
Sometimes in the `clean()`, `clean_FOO` or `save()` methods of a Django form, you need to have additional form instance attributes available. A sample case for this is having `user_id` available. This is a simple example of how to do it in Class-Based Views.
Core Concepts of Django ModelForms
The concepts behind Django's model forms can be boiled down to six items.
Core Concepts of Django Forms
The concepts behind Django's non-model forms can be listed in just three items.
Overloading Django Form Fields
How to overload Django form fields in an extensible way.