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 to local MySQL server through socket \'/cloudsql/instance:us-central1:project_name\' (2 "No such file or directory")')".
I have tried all I can and haven't really found any solutions online.
My database connection looks like this:
DATABASES = { |
| 'default': { |
| 'ENGINE': 'django.db.backends.mysql', |
| 'HOST': '/cloudsql/instance:us-central1:project', |
| 'USER': 'root', |
| 'PASSWORD': 'password', |
| 'NAME': 'db_name', |
| } |
| } |