Replace vnflcm mysql connector with PyMySQL. 55/33755/3
authorying.yunlong <ying.yunlong@zte.com.cn>
Fri, 2 Mar 2018 07:50:00 +0000 (15:50 +0800)
committeryunlong ying <ying.yunlong@zte.com.cn>
Sat, 3 Mar 2018 03:59:33 +0000 (03:59 +0000)
Change-Id: I8001ed03234a19ac549c2533bff0c2aff9434fe4
Issue-ID: VFC-786
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
lcm/lcm/__init__.py
lcm/requirements.txt

index c7b6818..68cf954 100644 (file)
@@ -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()
index 07ea566..b20fefc 100644 (file)
@@ -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