Wednesday, February 26, 2020

Re: Admin login problem

Share all of the code related to this model what you have overriden from nodel to admin registeration part also. Also check through terminal if superuser has been created successfully.
Did you override something related to login part too..?
Share code please. 

On Wednesday, 26 February 2020 17:57:19 UTC+5:30, Soumen Khatua wrote:
Yes I'm using custom user model and I already added user.is_admin=True. 
But still I'm getting the same error.
I attached the code snippet as well as error message also. 



On Wed 26 Feb, 2020, 5:47 PM Naveen Arora, <naveena...@gmail.com> wrote:
Hi soumen, 

Are you overriding default user model,  if yes check user.is_admin=True.
or else, Please post the exact error

Cheers
Naveen Arora
On Wednesday, 26 February 2020 17:43:51 UTC+5:30, Soumen Khatua wrote:
Hi Folks,
after creating superuser by using this command python manage.py createsuperuser. Whenever I'm entering the same(exact) login credentials.I'm getting this error:
    Please enter the correct phone number and password for a staff account. Note        that both fields may be case-sensitive .

But don't why i'm getting this error message.


Thank you in advance

Regards,
Soumen

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7f3894dd-6fd2-455a-975a-2f03f5041c16%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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4da4d212-7360-43bb-8e94-db1ee31d1f9f%40googlegroups.com.

No comments:

Post a Comment