diff --git a/core/forms.py b/core/forms.py index 6ab7d91..4229d82 100644 --- a/core/forms.py +++ b/core/forms.py @@ -21,6 +21,21 @@ Notes to self, as I try to work out what the hell is going on: Note that HTMLarea invokes a widget which sets a CSS class which calls javascript in templates/html_editor_scripts_css.html - which imports jquery and codemirror directly, without declaring it anywhere or locally installing it. (!) + +Django handles three distinct parts of the work involved in forms: +- preparing and restructuring data to make it ready for rendering +- creating HTML forms for the data +- receiving and processing submitted forms and data from the client +It is possible to write code that does all of this manually, but Django can take care of it all for you. + +READ https://docs.djangoproject.com/en/5.1/topics/forms/ and thoroughly digest it, also: +https://pythontimes.com/django-forms-deep-dive-advanced-techniques-for-form-handling/ +https://docs.djangoproject.com/en/5.1/ref/forms/models/ +https://stackoverflow.com/questions/53035151/django-formset-factory-vs-modelformset-factory-vs-inlineformset-factory +https://micropyramid.com/blog/understanding-djangos-model-formsets-in-detail-and-their-advanced-usage +https://www.geeksforgeeks.org/django-modelformsets/ +https://www.codeunderscored.com/model-formsets-in-django/ +https://django-formset.fly.dev/styling/ """ todo = """