Report this

What is the reason for this report?

django admin password, couldn't find docs on password since admin is installed by default.

Posted on April 23, 2015

Maybe I have overlook. Help me with the user and password please. Thanks



This textbox defaults to using Markdown to format your 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.

Hi! Have you created a new django app (Writing Your First Django App) after creating the droplet? If so, you can run the following command to migrate the database tables and create a superuser:

cd /home/django/django_project
python manage.py syncdb

Check out How To Use the Django One-Click Install Image.

I am getting the error when creating superuser because earlier I updated to django==1.8. I destroyed the droplet and started another. I can log in to admin now. I am following the tutorial on djangoproject site and create a polls app. However the docs was for version 1.8. I did pip install Django==1.8, the installation didn’t throw any errors so I thought it was ok. So if I am following the docs on djangoproject.com, how do I upgrade to 1.8. Thanks

Heya,

Apart from what has already been said if you need to create a new superuser(admin user) I’ll recommend you to follow these steps:

  1. Open a terminal or command prompt.

  2. Navigate to the root directory of your Django project where your manage.py file is located.

  3. Run the createsuperuser command:

python manage.py createsuperuser
  1. You will be prompted to enter a username, email address, and password for the superuser account. Follow the prompts and provide the required information:

    • Username: Choose a unique username for the superuser.
    • Email address: Provide a valid email address for the superuser.
    • Password: Enter a strong and secure password for the superuser. The password won’t be visible as you type it.
  2. After entering the required information, the superuser account will be created, and you will receive a confirmation message.

That’s it! You have successfully created a new superuser account in your Django project. You can use this superuser account to access the Django admin panel and perform administrative tasks on your website, such as managing users, groups, and other content.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.