No video

How to Easily Style Your Django Form Fields With Django Widget Tweaks

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

Pretty Printed

Pretty Printed

Күн бұрын

In this video I will show you an easy way to add classes and other attributes to your form fields in Django by using the Django Widget Tweaks library.
Need one-on-one help with your project? I can help through my coaching program. Learn more here: prettyprinted....
pypi.org/proje...
Get the code I wrote in this video: prettyprinted....
Twitter: / pretty_printed
Github: github.com/pre...

Пікірлер: 18
@rexsybimatrimawahyu3292
@rexsybimatrimawahyu3292 Ай бұрын
Thanks for your knowledge, is it possible for you one day to cover about django crispy forms?
@mrmuranga
@mrmuranga Жыл бұрын
short and well explained..thanks
@leaff807
@leaff807 4 ай бұрын
Ty sooo much. Very useful and concise guide!
@yetanothername1131
@yetanothername1131 Жыл бұрын
Straight to the point, thanks!
@prettyprinted
@prettyprinted Жыл бұрын
Thanks for watching!
@davisouzadeoliveira9830
@davisouzadeoliveira9830 Жыл бұрын
Ty bro, i relly needed this knowlege to make my project. Thanks!
@FabioRibeiro-mu4ok
@FabioRibeiro-mu4ok 2 ай бұрын
Thanks!
@FabioRibeiro-mu4ok
@FabioRibeiro-mu4ok 2 ай бұрын
Thank you so much for share!!!
@sherklan
@sherklan 8 ай бұрын
Increible so good , thanks bro
@seanraz
@seanraz Жыл бұрын
Just wondering about error handling. Will the errors appear underneath the fields? Or is there a widget-tweaks thing for that?
@mrendus
@mrendus Жыл бұрын
Do you preffer this method of styling forms in django or maybe you more like creating normal html form with id="{{ form.x.id_for_label }}"?
@mrendus
@mrendus Жыл бұрын
In my opinion second method is better because it doesn't need any 3rd packages and it looks easier for juniors
@prettyprinted
@prettyprinted Жыл бұрын
I prefer the first because it still follows the pattern of letting Django generate the form fields. But I think the second approach is just fine, and yeah you're right it's more obvious what's going on in the second.
@fadyghalayiny2825
@fadyghalayiny2825 Жыл бұрын
hi thanks for this great video have a problem with date field, I need to show date field with custom format d-m-Y I did not see it in the documentation
@floriskruger8098
@floriskruger8098 Жыл бұрын
thanks ma dude
@alirezasalimzadeh9137
@alirezasalimzadeh9137 Жыл бұрын
How can we show errors or add new errors with widget-tweaks?
@user-gy8wk8fp7n
@user-gy8wk8fp7n Жыл бұрын
Can I use this line " class+=' ' " to add a class name and style it with CSS??
@user-zr8yi8ji6g
@user-zr8yi8ji6g 10 күн бұрын
It was useful
Building Django forms with django-crispy-forms
12:20
BugBytes
Рет қаралды 45 М.
Kids' Guide to Fire Safety: Essential Lessons #shorts
00:34
Fabiosa Animated
Рет қаралды 16 МЛН
小丑把天使丢游泳池里#short #angel #clown
00:15
Super Beauty team
Рет қаралды 47 МЛН
Dad Makes Daughter Clean Up Spilled Chips #shorts
00:16
Fabiosa Stories
Рет қаралды 2,2 МЛН
Frontiers By Paradigm Day 2
4:12:12
Paradigm
Рет қаралды 1 М.
Style Django Forms With Bootstrap - Django Blog #5
15:46
Codemy.com
Рет қаралды 125 М.
If __name__ == "__main__" for Python Developers
8:47
Python Simplified
Рет қаралды 398 М.
(live-code) Building a custom form widget with Django
2:01:04
Tech with Brylie
Рет қаралды 1,2 М.
I Made 200 Python Projects...Here Are My 5 FAVORITES
11:23
Tech With Tim
Рет қаралды 150 М.
Django 5.0 Just Made Forms Even Better
3:24
Dennis Ivy
Рет қаралды 10 М.
Django Widget Tweaks
14:13
Django World
Рет қаралды 978
Modal forms with Django+HTMX
54:21
Benoit Blanchon
Рет қаралды 34 М.
Django 5.1 will be more secure by default
6:53
Dennis Ivy
Рет қаралды 8 М.
Kids' Guide to Fire Safety: Essential Lessons #shorts
00:34
Fabiosa Animated
Рет қаралды 16 МЛН