Create a Dependent Select Field in Django With HTMX

  Рет қаралды 18,695

Pretty Printed

Pretty Printed

Күн бұрын

Create dropdowns that depend on each on other with Django and HTMX.
WORK WITH ME👇🏼
✅ Implement features and fix bugs in your app: Live, one-on-one screenshare
prettyprinted....
💻 Code written in video
prettyprinted....

Пікірлер: 28
@deldridg
@deldridg 5 ай бұрын
Perfect and thank you! I have a project which requires me to construct forms on the fly with a ton of dependent dropdowns and other widget types. This has given me a real boost and I appreciate your time. Love the GitHub repo on your YT vids - wonderful. Cheers from a happy new sub in Sydney, Australia - Dave
@touhedulislam8742
@touhedulislam8742 Жыл бұрын
Very good idea, could you please share what will be the process to update/edit city and country??
@ThaddeausIorbeeofficialpage
@ThaddeausIorbeeofficialpage Жыл бұрын
The video I have been looking for. Thanks.
@prettyprinted
@prettyprinted Жыл бұрын
Glad it helped. Thanks for watching!
@omakkin
@omakkin Жыл бұрын
Thank you very much! Your video help me with my university project!
@amanye
@amanye Ай бұрын
Thank you man.
@JayJay-th3hd
@JayJay-th3hd Жыл бұрын
Very nice tutorial! Would be helpful a follow up with examples where the structure is more complex (e.g. model.ForeignKey with more variables)🙂
@prettyprinted
@prettyprinted Жыл бұрын
I'll definitely consider that for an advanced HTMX video.
@MohammadFikriAbdillah
@MohammadFikriAbdillah 10 ай бұрын
Thank you for this video. Its worked but what if in the form there are 3 columns that are related to each other. such as country, city, and district. whether the form of __init__ will remain the same?
@crimsoncrap
@crimsoncrap Жыл бұрын
Very thoroughly explained. thanks!!
10 ай бұрын
htmx looks kool. the question is, i guess, there has to be some kind of authorization mechanism or need to implement for fetching from another view. "load_cities" is public endpoint right? anyone can call that url. does htmx provide any access control over http requests?
@GevorgVardanyan
@GevorgVardanyan Жыл бұрын
Great, thanks for video. Would be nice to see the same functionality in admin site, see what kind of customization it requires.
@gerardomottini894
@gerardomottini894 9 ай бұрын
Thank you very very very much!
@nishantkumar9570
@nishantkumar9570 Жыл бұрын
Could you please help me with some guidance in using HTMX in FastAPI.
@KOBENANEmmanuel-n5x
@KOBENANEmmanuel-n5x 6 ай бұрын
I followed your presation. but my select field display cities object (1) , cities object (2) . I would like to display the cities name. could you help me please?
@ElyasNaimzada
@ElyasNaimzada Жыл бұрын
great tutorial, when i save the values it saves the displayed values i want save the value of country 1 for usa and 2 for canada in database.
@crisnamurti
@crisnamurti Жыл бұрын
Thank you for the video.
@prettyprinted
@prettyprinted Жыл бұрын
Thanks for watching!
@ChinseokLee
@ChinseokLee Жыл бұрын
AWESOME ~!!! 🎉
@KoRNeRd
@KoRNeRd Жыл бұрын
How do we ingest the data which you print out with Country.objects.all() in the database? The whole example relies on this data and you have not shown how to actually put it there.
@prettyprinted
@prettyprinted Жыл бұрын
I wanted to cover specifically the HTMX part. I have other videos on using models in Django so you can see how to work with the data you have.
@andywang1352
@andywang1352 Жыл бұрын
great video
@krishnavenkataraman2454
@krishnavenkataraman2454 Жыл бұрын
Awesomeness..
@ibrahimoglu
@ibrahimoglu Жыл бұрын
👍
@立法院很忙
@立法院很忙 Жыл бұрын
perfect!
@frameff9073
@frameff9073 Жыл бұрын
good
@prettyprinted
@prettyprinted Жыл бұрын
Thanks for watching!
@touhedulislam8742
@touhedulislam8742 Жыл бұрын
Very good idea, could you please share what will be the process to update/edit city and country??
Django and HTMX #10 - Chained Dropdowns with Django and HTMX
12:27
小丑家的感情危机!#小丑#天使#家庭
00:15
家庭搞笑日记
Рет қаралды 30 МЛН
Smart Sigma Kid #funny #sigma
00:14
CRAZY GREAPA
Рет қаралды 4,1 МЛН
小路飞嫁祸姐姐搞破坏 #路飞#海贼王
00:45
路飞与唐舞桐
Рет қаралды 29 МЛН
哈哈大家为了进去也是想尽办法!#火影忍者 #佐助 #家庭
00:33
火影忍者一家
Рет қаралды 124 МЛН
Modal forms with Django+HTMX
54:21
Benoit Blanchon
Рет қаралды 35 М.
programming projects that taught me how to code
9:49
isak
Рет қаралды 296 М.
Style Django Forms With Bootstrap - Django Blog #5
15:46
Codemy.com
Рет қаралды 127 М.
Django & HTMX - Dynamic Form Creation and Submission
24:36
BugBytes
Рет қаралды 29 М.
Django and Htmx Todo Application | Tailwind CSS
25:33
Code With Stein
Рет қаралды 25 М.
小丑家的感情危机!#小丑#天使#家庭
00:15
家庭搞笑日记
Рет қаралды 30 МЛН