django 1-click app does not work

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.


Running python3 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 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.


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.

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

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