python - Can't connect to Google Cloud SQL from within App Engine using SSL (in Django) -


my app engine app doing well, want toggle "only allow secure connections" option in cloud sql configuration. when so, can still connect remotely , in local development. however, deployed app stops working 1045 error "access denied"

i cannot figure out store/upload ssl certificates on deployed app or how call them settings.py

can please help?

here relevant section of settings.py (redacted)

if os.getenv('server_software', '').startswith('google app engine'):     # running on production app engine, use google cloud sql database.        databases = {     'default': {     'engine': 'django.db.backends.mysql',     'host': '/cloudsql/<myappengineapp>:<mycloudsqlinstance>',     'name': 'test',     'user': 'root',     'password': '<mypassword>',     'options':           <ssl goes in here?>      } } 

else: # running in development, want access google cloud sql instance


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -