By rroslan
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!
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
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:
Open a terminal or command prompt.
Navigate to the root directory of your Django project where your manage.py file is located.
Run the createsuperuser command:
python manage.py createsuperuser
You will be prompted to enter a username, email address, and password for the superuser account. Follow the prompts and provide the required information:
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.