Given I spin up a droplet using the django 1-click app available here, when I go to http://<droplet-ip>/admin, then I may sign in with the credentials in ~/.digitalocean_passwords.
Upon attempting to sign in, I get the following error:
ProgrammingError at /admin/login/
relation "auth_user" does not exist
LINE 1: ...user"."is_active", "auth_user"."date_joined" FROM "auth_user...
The full html of the error page may be viewed here.
Running python3 manage.py migrate from the directory /home/django/django_project fixes this error, but login with the password in ~/.digitalocean_passwords does not work. I must manually create a password with python3 manage.py createsuperuser.
There may be something missing from the script in the 1-click app to migrate data to the db and create a user.
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 there @rileyw13,
Thank you for taking the time and providing this nice feedback! We have forwarded this to our Marketplace team for further evaluation.
Regards, Bobby
We did not update our migration command after upgrading from Django 1.8 to Django 2.2. The migration issue should be fixed with the current image. Please let me know if it isn’t resolved.
Thanks for reporting the issue! Jim
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.