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, <naveenarorakrnl@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
CheersNaveen 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 advanceRegards,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-users+unsubscribe@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/CAPUw6WbNnZN_%2Bf1KHAqVeF9-Y44WaCppdz1QSUoW_D73b0JuVA%40mail.gmail.com.
No comments:
Post a Comment