Question

Django admin panel

i can not to enter after python3 manage.py createsuperuser to django admin console, what can be wrong?

Subscribe
Share

Did you run python manage.py migrate before you ran python manage.py createsuperuser? During createsuperuser process, you need the username and password, you don’t need anything else, i.e. email.

You should do this first, then run python manage.py runserver

lastly, navigate to http://127.0.0.1:8000/admin/

There really isn’t anything else you would need to do. If you are getting another error, please post it.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Accepted Answer

Uh, i should update my question - i found that in tutorial:

Step 3: Play in the admin area

The standard Django admin area is accessible at /admin. The login and password are stored in the DJANGO_USER* values you see when you call cat /root/.digitalocean_passwords while logged in over SSH.

But now i cannot edit this file - looks like in saved forever so i will close this question and ask another one