No video

Create a Dependent Select Field in Django With HTMX

  Рет қаралды 17,703

Pretty Printed

Pretty Printed

Күн бұрын

In this video I'll show you how to create drop downs that depend on each on other drop downs with Django and HTMX.
Need one-on-one help with your project? I can help through my coaching program. Learn more here: prettyprinted....
Get the code I wrote in this video: prettyprinted....
Twitter: / pretty_printed
Github: github.com/pre...

Пікірлер: 27
@deldridg
@deldridg 3 ай бұрын
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 10 ай бұрын
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 11 ай бұрын
Thank you very much! Your video help me with my university project!
@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.
@crimsoncrap
@crimsoncrap 11 ай бұрын
Very thoroughly explained. thanks!!
@user-ku7ws1re1v
@user-ku7ws1re1v 8 ай бұрын
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?
@user-tk2gf2qh1r
@user-tk2gf2qh1r 5 ай бұрын
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?
@gerardomottini894
@gerardomottini894 8 ай бұрын
Thank you very very very much!
9 ай бұрын
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?
@user-bd2gj8kk5n
@user-bd2gj8kk5n 11 ай бұрын
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.
@GevorgVardanyan
@GevorgVardanyan Жыл бұрын
Great, thanks for video. Would be nice to see the same functionality in admin site, see what kind of customization it requires.
@nishantkumar9570
@nishantkumar9570 Жыл бұрын
Could you please help me with some guidance in using HTMX in FastAPI.
@crisnamurti
@crisnamurti Жыл бұрын
Thank you for the video.
@prettyprinted
@prettyprinted Жыл бұрын
Thanks for watching!
@ChinseokLee
@ChinseokLee Жыл бұрын
AWESOME ~!!! 🎉
@andywang1352
@andywang1352 Жыл бұрын
great video
@krishnavenkataraman2454
@krishnavenkataraman2454 Жыл бұрын
Awesomeness..
@user-xu7jz4li7e
@user-xu7jz4li7e Жыл бұрын
perfect!
@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.
@ibrahimoglu
@ibrahimoglu 11 ай бұрын
👍
@frameff9073
@frameff9073 Жыл бұрын
good
@prettyprinted
@prettyprinted Жыл бұрын
Thanks for watching!
@touhedulislam8742
@touhedulislam8742 10 ай бұрын
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
What will he say ? 😱 #smarthome #cleaning #homecleaning #gadgets
01:00
Cute kitty gadgets 💛
00:24
TheSoul Music Family
Рет қаралды 12 МЛН
Challenge matching picture with Alfredo Larin family! 😁
00:21
BigSchool
Рет қаралды 43 МЛН
拉了好大一坨#斗罗大陆#唐三小舞#小丑
00:11
超凡蜘蛛
Рет қаралды 9 МЛН
Django & HTMX - Dynamic Form Creation and Submission
24:36
BugBytes
Рет қаралды 28 М.
HTMX + GO 15 Minute Quickstart (For Javascript Devs)
16:59
developedbyed
Рет қаралды 22 М.
7 minutes to polling with Django and HTMX 🗳️
7:38
Tom Dekan
Рет қаралды 986
Modal forms with Django+HTMX
54:21
Benoit Blanchon
Рет қаралды 34 М.
Django ORM Course | Choice Field Option
14:12
Very Academy
Рет қаралды 10 М.
How to Create an Instant Search Bar With Flask and HTMX
13:13
Pretty Printed
Рет қаралды 18 М.
HTMX Crash Course | Dynamic Pages Without Writing Any JavaScript
56:47
Traversy Media
Рет қаралды 147 М.
What will he say ? 😱 #smarthome #cleaning #homecleaning #gadgets
01:00