Custom attributes in django forms

20 views
Skip to first unread message

gordon nchy

unread,
Nov 25, 2018, 9:09:37 PM11/25/18
to Django users
hello everyone....
i'm facing a challenge on how to add custom attributes to django login form. i used the LoginView from django.contrib.auth.views to generate a login form, but i really need help on how to add custom attributes maybe like using widgets but i dont know how to do it..i'll appreciate any help from you guys!!

Yavin Aalto Arba

unread,
Nov 26, 2018, 8:22:35 AM11/26/18
to django...@googlegroups.com
Hi Gordon, 

Try starting with the documentation here and if u have any questions please let us know:


On Sun, Nov 25, 2018, 11:09 PM gordon nchy <godso...@gmail.com wrote:
hello everyone....
i'm facing a challenge on how to add custom attributes to django login form. i used the LoginView from django.contrib.auth.views to generate a login form, but i really need help on how to add custom attributes maybe like using widgets but i dont know how to do it..i'll appreciate any help from you guys!!

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1b463fa5-ab80-4182-8022-5fe33b695444%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

gordon nchy

unread,
Nov 26, 2018, 10:08:54 AM11/26/18
to django...@googlegroups.com
thanks!

gnchy

On 26 Nov 2018 11:22, "Yavin Aalto Arba" <yavi...@gmail.com> wrote:
Hi Gordon, 

Try starting with the documentation here and if u have any questions please let us know:


On Sun, Nov 25, 2018, 11:09 PM gordon nchy <godso...@gmail.com wrote:
hello everyone....
i'm facing a challenge on how to add custom attributes to django login form. i used the LoginView from django.contrib.auth.views to generate a login form, but i really need help on how to add custom attributes maybe like using widgets but i dont know how to do it..i'll appreciate any help from you guys!!

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.

aakashchoudhary66

unread,
Nov 26, 2018, 1:18:42 PM11/26/18
to django...@googlegroups.com
I am using version 2.1.3 of python and I add render in the view and after running the server it showing template does not exist




Sent from my Samsung Galaxy smartphone.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
Reply all
Reply to author
Forward
0 new messages