Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyMySQL doesn't work? #3221

Closed
Bartleby2718 opened this issue Mar 29, 2020 · 0 comments · Fixed by #3248
Closed

PyMySQL doesn't work? #3221

Bartleby2718 opened this issue Mar 29, 2020 · 0 comments · Fixed by #3248
Assignees
Labels
api: cloudsql type: question Request for information or clarification. Not an issue.

Comments

@Bartleby2718
Copy link

In which file did you encounter the issue?

https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/appengine/standard_python37/django/mysite/settings.py

Did you change the file? If so, how?

Switch from PyMySQL to mysqlclient

Describe the issue

When I deploy to GCP using gcloud app deploy, I get the 502 error after deployment. I checked the error with gcloud app logs tail -s default, and the error message was mysqlclient 1.3.13 or newer is required; you have 0.9.3., where 0.9.3 is the version of PyMySQL version in the current requirements.txt. I switched to mysqlclient, and now the error is gone. Also, now that you're no longer using PyMySQL, you can now change the Django version to 2.2+.

Bartleby2718 added a commit to Bartleby2718/python-docs-samples that referenced this issue Mar 29, 2020
Bartleby2718 added a commit to Bartleby2718/python-docs-samples that referenced this issue Mar 29, 2020
@kurtisvg kurtisvg added api: cloudsql type: question Request for information or clarification. Not an issue. labels Mar 29, 2020
@leahecole leahecole linked a pull request Apr 1, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: cloudsql type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants