All Courses

After creating super user I can't login to django admin account

By Ashish, a year ago
  • Bookmark
0

I have executed the following commands:

python manage.py createsuperuser

and fill out the information the superuser gets created it says

Superuser created successfully.

But when I try to log in with these credentials it says

Please enter the correct username and password for a staff account. Note that both fields may be case-sensitive.

Django
Admin
Super user
1 Answer
0
Pritam Shinde

Did you run 

python manage.py migrate 

before you run 

python manage.py createsuperuser

During createsuperuser process, you need the username and password, you don't need anything else, i.e. email id.

You should do this first, then run 

python manage.py runserver

then goto  

http://127.0.0.1:8000/admin/

Your Answer

Webinars

How To Land a Job in Data Science?

Feb 9th (7:00 PM) 187 Registered
More webinars

Related Discussions

Running random forest algorithm with one variable

View More