django.db.utils.OperationalError: (2002, 'Can\'t connect to local MySQL server through socket \'/cloudsql/instance:us-central1:project_name\' (2 "No such file or directory")')

2019-08-09 Thread Solomon Mbak
Hi. For two days I have been stuck on deploying my Django app on Google App Engine. I cloned the project from my Github account. I have installed the requirements also. The database in-use is a mysql database I get an error that says "django.db.utils.OperationalError: (2002, 'Can\'t connect

Re: I get errors when I try deploying my app on gae

2019-08-07 Thread Solomon Mbak
That was actually it. I got it solved and it's working fine. Thanks a lot. On Wed, Aug 7, 2019, 8:33 AM Kasper Laudrup wrote: > Hi Solomon, > > On 06/08/2019 09.27, Solomon Mbak wrote: > > I have given myself many hours to try and solve this one, all to no > > avail. I

Django GAE deployment DATABASE setting

2019-08-07 Thread Solomon Mbak
Hi guys. I've spent a few hours on this one, all to no avail. I'm trying to reply my Django App on Google App Engine, but I get errors on the database connection. I tried configurations as shown below, but it still isn't connecting. I need help please; DATABASES = { 'default': { 'ENGINE':

I get errors when I try deploying my app on gae

2019-08-06 Thread Solomon Mbak
I have given myself many hours to try and solve this one, all to no avail. I really need some help. My app works perfectly on development environment. When I deploy on Google App Engine, I get series of syntax error. from django.shortcuts import render, redirect from django.http import