Admin login problem

169 views
Skip to first unread message

Soumen Khatua

unread,
Feb 26, 2020, 7:13:51 AM2/26/20
to django...@googlegroups.com
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

Naveen Arora

unread,
Feb 26, 2020, 7:17:46 AM2/26/20
to Django users
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

Soumen Khatua

unread,
Feb 26, 2020, 7:27:19 AM2/26/20
to django...@googlegroups.com
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. 



--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7f3894dd-6fd2-455a-975a-2f03f5041c16%40googlegroups.com.
IMG_20200226_175205.jpg
IMG_20200226_175249.jpg

Naveen Arora

unread,
Feb 26, 2020, 8:42:58 AM2/26/20
to Django users
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.
Reply all
Reply to author
Forward
0 new messages