add link to better forms - online edit of handbook/troggle/trogdjango.html

This commit is contained in:
2025-09-27 21:10:39 +01:00
committed by Expo on server
parent a895e16b46
commit 991d39ff02

View File

@@ -91,9 +91,9 @@ and also much more about the manipulation of QuerySets:
<p>Some of the more bizarre data model structures are probably fossils from Django v0.6, e.g. the separate classes that join Entrances to Caves. We haven't got to the bottom of all these yet.
<h4>Django Forms</h4>
<p>TLDR: Just don't.
https://www.loopwerk.io/articles/2025/django-views/?utm_source=www.pythonweekly.com&utm_medium=newsletter&utm_campaign=python-weekly-issue-712-september-4-2025&_bhlid=6ece59f0c3de24278c50871556723844d8ab734a
Django has several generations of quite different clever mechanisms to make creating HTML forms "easier". Yes, making them might be easier, but maintaining this opinionated stuff is a nightmare. Really don't.
<p>TLDR: Just don't. See
<a href="https://www.loopwerk.io/articles/2025/django-views/?utm_source=www.pythonweekly.com&utm_medium=newsletter&utm_campaign=python-weekly-issue-712-september-4-2025&_bhlid=6ece59f0c3de24278c50871556723844d8ab734a">How I write Django views</a>
Django has several generations of quite different clever mechanisms to make creating HTML forms "easier". Yes, making them might be easier, but maintaining this opinionated stuff is a nightmare. Really don't: "Thats 11 methods spread across 5 classes and mixins. Debugging a view or figuring out exactly which method to override to make the view behave in a certain way quickly becomes a case of opening way too many files and jumping back and forth between different method declarations. Its just too much."
<p>OK a form is broken or inadequate, so are you feeling confident? Are you adequately caffinated? Then a new adventure begins... <a href="trogforms.html">Troggle and HTML forms</a>.
<hr />
Go on to: <a href="trogdjangup.html">Troggle: updating Django</a><br />