You bring your web app in a
- GitHub repo
- App Platform handles deployments and builds
- DNS, HTTPS, CDN, DDoS Mitigation, Vertical Scaling, Horizontal Scaling, and more.
django 1-click app does not work
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
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.
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.
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.×