Тёмный

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

Pretty Printed
Подписаться 96 тыс.
Просмотров 18 тыс.
50% 1

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.com/coaching
pypi.org/project/django-widge...
Get the code I wrote in this video: prettyprinted.com/l/Yhh
Twitter: / pretty_printed
Github: github.com/prettyprinted

Опубликовано:

 

3 окт 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 16   
@mrmuranga
@mrmuranga Год назад
short and well explained..thanks
@leaff807
@leaff807 3 месяца назад
Ty sooo much. Very useful and concise guide!
@davisouzadeoliveira9830
@davisouzadeoliveira9830 Год назад
Ty bro, i relly needed this knowlege to make my project. Thanks!
@sherklan
@sherklan 6 месяцев назад
Increible so good , thanks bro
@FabioRibeiro-mu4ok
@FabioRibeiro-mu4ok 11 дней назад
Thank you so much for share!!!
@floriskruger8098
@floriskruger8098 Год назад
thanks ma dude
@FabioRibeiro-mu4ok
@FabioRibeiro-mu4ok 11 дней назад
Thanks!
@yetanothername1131
@yetanothername1131 Год назад
Straight to the point, thanks!
@prettyprinted
@prettyprinted Год назад
Thanks for watching!
@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
@seanraz
@seanraz Год назад
Just wondering about error handling. Will the errors appear underneath the fields? Or is there a widget-tweaks thing for that?
@user-gy8wk8fp7n
@user-gy8wk8fp7n Год назад
Can I use this line " class+=' ' " to add a class name and style it with CSS??
@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.
@alirezasalimzadeh9137
@alirezasalimzadeh9137 Год назад
How can we show errors or add new errors with widget-tweaks?
Далее
Building Django forms with django-crispy-forms
12:20
Просмотров 43 тыс.
Style Django Forms With Bootstrap - Django Blog #5
15:46
Каха и суп
00:39
Просмотров 1,2 млн
I Made 200 Python Projects...Here Are My 5 FAVORITES
11:23
Model Form | Django
6:43
Просмотров 128 тыс.
Dynamic list views with Django and htmx
34:09
Просмотров 13 тыс.
Django Forms: Choice Field
9:17
Просмотров 3,8 тыс.