victorious-cat-12942
10/06/2022, 8:04 PMancient-shoe-86801
10/06/2022, 8:20 PMancient-shoe-86801
10/06/2022, 8:20 PMvictorious-cat-12942
10/06/2022, 8:32 PMvictorious-cat-12942
10/06/2022, 8:32 PMgreen-activity-6102
10/06/2022, 8:57 PMform.fields['field_name'].queryset = Model.objects.filter(...)
victorious-cat-12942
10/06/2022, 9:17 PMvictorious-cat-12942
10/06/2022, 9:17 PMgreen-activity-6102
10/06/2022, 9:17 PM.choices
instead of .queryset
green-activity-6102
10/06/2022, 9:18 PMvictorious-cat-12942
10/06/2022, 9:18 PMvictorious-cat-12942
10/06/2022, 9:18 PMvictorious-cat-12942
10/06/2022, 9:19 PMgreen-activity-6102
10/06/2022, 11:18 PMvictorious-cat-12942
10/06/2022, 11:21 PMvictorious-cat-12942
10/06/2022, 11:21 PMgreen-activity-6102
10/06/2022, 11:23 PMvictorious-cat-12942
10/06/2022, 11:27 PMearly-camera-41285
10/06/2022, 11:35 PMvictorious-cat-12942
10/07/2022, 1:01 PMmysterious-toddler-20573
10/07/2022, 1:39 PMvictorious-cat-12942
10/07/2022, 1:51 PMgreen-activity-6102
10/07/2022, 3:53 PMchoices
argument instead of a static list, that might be helpful for you https://docs.djangoproject.com/en/4.1/ref/forms/fields/#django.forms.ChoiceField.choicesgreen-activity-6102
10/07/2022, 3:53 PMrequest.GET
query dictvictorious-cat-12942
10/07/2022, 4:31 PMaloof-painter-18008
10/13/2022, 8:40 AMmysterious-toddler-20573
10/13/2022, 1:18 PM/contacts/
, /contacts/34
, etc, but then I'll start getting things like /contacts/34/details
for a details div that needs to poll or whatever. A bit different than how a JSON API would work.
2) In general, the more you can move to the backend, the better. If you have a lot of small changes that need to occur in the UI, then you probably want to expand the target of your HTTP requests to be as large as possible. If that won't work, there are other techniques available: https://htmx.org/examples/update-other-content/, but I always advocate keeping it as simple as possiblealoof-painter-18008
10/13/2022, 2:10 PMwhite-motorcycle-95262
10/13/2022, 9:19 PMdjango-compressor
for awhile to compress js and css...but now I'm wondering: is there really a point to compressing/minifying multiple already-minified files into a single file? or is it kind of diminishing returns at that point?
I know this is kind of more Django than HTMX, but figured people here would have good insighthundreds-camera-24900
10/13/2022, 9:30 PM