8000 Bump Django version to 3.0 and set PyMySQL version (#3248) · signalarun/python-docs-samples@675b9ba · GitHub
[go: up one dir, main page]

Skip to content

Commit 675b9ba

Browse files
authored
Bump Django version to 3.0 and set PyMySQL version (GoogleCloudPlatform#3248)
Alternative to GoogleCloudPlatform#3244 to continue PyMySQL support
1 parent c8f577b commit 675b9ba

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

appengine/standard_python37/django/mysite/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
# See https://docs.djangoproject.com/en/2.1/ref/databases/#mysql-db-api-drivers
8484
# for more information
8585
import pymysql # noqa: 402
86+
pymysql.version_info = (1, 4, 6, 'final', 0) # change mysqlclient version
8687
pymysql.install_as_MySQLdb()
8788

8889
# [START db_setup]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Django==2.1.14 #This requirement must remain pinned at 2.1.14 until https://github.com/PyMySQL/PyMySQL/issues/790 is resolved
1+
Django==3.0.5
22
PyMySQL==0.9.3

0 commit comments

Comments
 (0)
0