Maybe I just had to enable the Cloud SQL Admin API (but then again, when I enabled it without redeploying, it didn't work). So it seems hard to tell what made it work. When I tried accessing the app from the cloud this time, it worked. Then, I activated my Python Virtual Environment with all the dependencies, and redeployed using the gcloud app deploy command, while my virtual environment was activated. So I first activated the Cloud SQL Admin API, and tried accessing the application again from the cloud url. When I deployed, my local Python Virtual Environment was not activated (I'm not sure if this would make a difference though).I hadn't enabled the Cloud SQL Admin API (something that was mentioned above, and from looking at the logs it seemed that API needed to be enabled, even though it's not listed in the tutorial).However, I did notice the following things: My app.yaml and config.py files were in order. Hmm, I encountered the same error when I first deployed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |