Report this

What is the reason for this report?

django 1-click app does not work

Posted on September 3, 2020

Expected Behavior:

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.

Actual Behavior:

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.

Discoveries:

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.

Possible Solution:

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!

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

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.