I'm trying to run a Django app on Google Cloud Run. The site itself works nicely, can run migrations and collect static assets via a startup script. The one thing I cannot figure out how to do is create a superuser. This requires interactively typing in a password or at least setting it via a django shell. I currently cannot figure out how to do this and it seems like it might not be possible; which would make Cloud Run unusable for Django. Has anyone been able to achieve this or have a sustainable workaround? Thanks!
Asked
Active
Viewed 503 times
2
-
1Configure the container in Docker at your desktop. Deploy the modified container to Cloud Run. – John Hanley Sep 21 '19 at 15:24