summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lcm/__init__.py3
-rw-r--r--requirements.txt2
2 files changed, 4 insertions, 1 deletions
diff --git a/lcm/__init__.py b/lcm/__init__.py
index 5580cc3d..a1f872b9 100644
--- a/lcm/__init__.py
+++ b/lcm/__init__.py
@@ -11,3 +11,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
+import pymysql
+
+pymysql.install_as_MySQLdb()
diff --git a/requirements.txt b/requirements.txt
index 74390f45..687b38fe 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -3,7 +3,7 @@ Django==1.11.9
djangorestframework==3.7.7
# for access MySQL
-MySQL-python==1.2.5
+PyMySQL==0.7.11
# redis cache
redis==2.10.5