Re: case-insensitive username

2017-11-20 Thread Mike Dewhirst
On 20/11/2017 6:40 PM, Mike Dewhirst wrote: I have seen the two tickets and read the developer list thread[1]on this subject. Is there a best-practice approach to preventing usernames which are case-insensitively equivalent I'm hoping someone has achieved this and might be willing to share.

Re: How do I customize a user registration form so it only requires email and password fields?

2017-11-20 Thread Tom Tanner
I changed a few things. `models.py` now has this: class MyUser(AbstractBaseUser): email= models.CharField(max_length=254, unique=True) USERNAME_FIELD= "email" `forms.py`" class RegisterForm(UserCreationForm): email= forms.EmailField(label=_("Email"), max_length=254)

Re: How do I customize a user registration form so it only requires email and password fields?

2017-11-20 Thread Tom Tanner
Hello Amitesh, When you say to return HttpReponse(), how would that code look? And I'm still learning Django, but how would this make it so that the only required fields on my registration form are "email" and "password?" Thanks. On Sunday, November 19, 2017 at 11:30:51 PM UTC-5, Amitesh Sahay

Re: Why do I get this error "context must be a dict rather than Context." ?

2017-11-20 Thread 'Amitesh Sahay' via Django users
As far as I know, context is always built through key, value pair. But check for it before coming to any conclusion Hello, Regards,Amitesh Sahay primary :: 91-907 529 6235 On Monday 20 November 2017, 6:08:00 PM IST, pallavi pund wrote: This helped me too . thank you On Sunday, A

Re: Authenticating to /admin doesn't redirect

2017-11-20 Thread yingi keme
Try python manage.py createsuperuser. Follow the instructions, then try login in again Yingi Kem > On 20 Nov 2017, at 1:51 PM, Christian Ahidjo wrote: > > Hi, > I started working on an existing django project and for a reason I ignore if > I try to log in /admin the page does nothing. There i

Re: Authenticating to /admin doesn't redirect

2017-11-20 Thread Vineet Kothari
Python manage.py createsuperuser On Nov 20, 2017 8:15 PM, "Christian Ahidjo" wrote: > Hi, > I started working on an existing django project and for a reason I ignore > if I try to log in /admin the page does nothing. There is no error message > about wrong credentials. Only error message I get i

Authenticating to /admin doesn't redirect

2017-11-20 Thread Christian Ahidjo
Hi, I started working on an existing django project and for a reason I ignore if I try to log in /admin the page does nothing. There is no error message about wrong credentials. Only error message I get is when the input fields are empty. What is the way on Django to create a new user? What cou

Re: Why do I get this error "context must be a dict rather than Context." ?

2017-11-20 Thread pallavi pund
This helped me too . thank you On Sunday, April 30, 2017 at 4:15:32 AM UTC+5:30, Tim Graham wrote: > > It looks like the tutorial you're following hasn't been updated for Django > 1.11. > > Line 20 should pass a dict rather than Context: > > t.render({'current_date': now}) > > It's related to thi