I followed this tutorial:
to get a Django app deployed to Google App Engine. It's there, it's working, but I need to run migrations and create a user. How am I supposed to run manage.py
on those servers? I found how to SSH to them from the Google Cloud Platform console, but once I'm in the server, I can't find how to load the correct Python environment and/or run manage.py
.
I also read Running Django in the App Engine Flexible Environment which doesn't explain how to do it and their configuration file seems to assume database credentials will end up in the git repo for the application, which is a big nono. I'm not doing that, which means connecting to the production database from my workstation is cumbersome.
If this was Heroku, for example, I would do this on my dev workstation:
heroku run python manage.py migrate
or
heroku run python manage.py createsuperuser
and it would execute those commands in the server. I'm trying to do the same with Google App Engine Flexible (as well as Standard).