If guess you are using HTML to create the form. So, I believe that Type  = 
'Text' and Type = 'email'. May be. Please cross cehck


Regards,
Amitesh Sahay 

    On Friday, 30 August, 2019, 10:59:19 pm IST, Sandip Nath 
<[email protected]> wrote:  
 
 I am building a car rental website with Django. Currently working on user 
authentication.The user can either use his/her username/email and password to 
login.It's working fine. My question is, how will I change the label for 
username field to "username/email" so that the user can understand that either 
username or email can be entered. I cannot  make changes in the login.html 
template because I have used there {{ form.as_p }} tag and the concerned 
portion in my forms.py file has:
    class LoginForm(forms.Form):        username = forms.CharField()        
password = forms.CharField(widget=forms.PasswordInput)
I am not able to understand where to make changes. Please help.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d67736f6-0b96-490d-8d73-bdcb476cd048%40googlegroups.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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1132743044.381705.1567188902042%40mail.yahoo.com.

Reply via email to