All Courses

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

By Ashish, a year ago
  • Bookmark

I have executed the following commands:

python 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.

Super user
1 Answer
Pritam Shinde

Did you run 

python migrate 

before you run 

python 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 runserver

then goto

Your Answer


How To Land a Job in Data Science?

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

Related Discussions

Running random forest algorithm with one variable

View More