Re: How to add css class and attribute to username,password

2021-02-14 Thread Tal Bar-Or
Thank you very much all for the helpful advice Thanks again Le dim. 14 févr. 2021 à 21:46, Omkar Parab a écrit : > crispy-forms will give you bootstrap design. If you want to apply your own > css then install "django-widget-tweaks". > > On Mon, Feb 15, 2021, 1:10 AM Omkar Parab wrote: > >> Inst

Re: How to add css class and attribute to username,password

2021-02-14 Thread Omkar Parab
crispy-forms will give you bootstrap design. If you want to apply your own css then install "django-widget-tweaks". On Mon, Feb 15, 2021, 1:10 AM Omkar Parab wrote: > Install django-widget-tweaks package. > > On Mon, Feb 8, 2021, 2:11 AM Tal Bar-Or wrote: > >> >> Hello , >> >> I writing project

Re: How to add css class and attribute to username,password

2021-02-14 Thread Omkar Parab
Install django-widget-tweaks package. On Mon, Feb 8, 2021, 2:11 AM Tal Bar-Or wrote: > > Hello , > > I writing project which the user login with my own customized HTML page > (boosstrap) > > i can manually add the form.username and form.password , but seems they > don't get the attribute from my

Re: How to add css class and attribute to username,password

2021-02-14 Thread Abubakar Ibrahim Baiwa
You should consider using crispy forms plugin. They easily style your forms. *https://django-crispy-forms.readthedocs.io/en/latest/ * On Sun, 14 Feb 2021, 7:36 pm Sherif Adigun, wrote: > Try changing UserLoginForm(forms.ModelForm) to UserLo

Re: How to add css class and attribute to username,password

2021-02-14 Thread Sherif Adigun
Try changing UserLoginForm(forms.ModelForm) to UserLoginForm(forms.Form) On Sunday, February 7, 2021 at 9:41:35 PM UTC+1 tba...@gmail.com wrote: > > Hello , > > I writing project which the user login with my own customized HTML page > (boosstrap) > > i can manually add the form.username and form

How to add css class and attribute to username,password

2021-02-07 Thread Tal Bar-Or
Hello , I writing project which the user login with my own customized HTML page (boosstrap) i can manually add the form.username and form.password , but seems they don't get the attribute from my forms.py , dode is added below , please advise Thanks urls.py from django.urls import path f