summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2024-12-16 13:08:58 +0000
committerPhilip Sargent <philip.sargent@gmail.com>2024-12-16 13:08:58 +0000
commitd8ab17217f8fd7784b35ec4c9924717ed05491a5 (patch)
tree21538ec0fb273aceb718621ed6bb14196b28515e /core
parentf560cce34855dc025f4e858fe6c1ced6930d4c82 (diff)
downloadtroggle-d8ab17217f8fd7784b35ec4c9924717ed05491a5.tar.gz
troggle-d8ab17217f8fd7784b35ec4c9924717ed05491a5.tar.bz2
troggle-d8ab17217f8fd7784b35ec4c9924717ed05491a5.zip
docm
Diffstat (limited to 'core')
-rw-r--r--core/forms.py15
1 files changed, 15 insertions, 0 deletions
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 = """