summaryrefslogtreecommitdiffstats
path: root/mgr
diff options
context:
space:
mode:
authorying.yunlong <ying.yunlong@zte.com.cn>2018-03-02 14:04:17 +0800
committerying.yunlong <ying.yunlong@zte.com.cn>2018-03-02 14:04:17 +0800
commit541d28fa0ba89b4b421f32f7783de67c0c3e73e3 (patch)
treed2d254060e38145e1cd3e1d37b12816bea2a7b8e /mgr
parent850501ad95569c1575e84bf36e65c2a589137a8f (diff)
Replace vfc-vnfmgr mysql connector
Use MIT PyMySQL to replace GPL MySQL-Python Change-Id: I970a7f42b4410ddf337b377f714ef75ce94a6712 Issue-ID: VFC-786 Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
Diffstat (limited to 'mgr')
-rw-r--r--mgr/mgr/__init__.py4
-rw-r--r--mgr/requirements.txt2
2 files changed, 5 insertions, 1 deletions
diff --git a/mgr/mgr/__init__.py b/mgr/mgr/__init__.py
index c7b6818..f510226 100644
--- a/mgr/mgr/__init__.py
+++ b/mgr/mgr/__init__.py
@@ -11,3 +11,7 @@
# 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/mgr/requirements.txt b/mgr/requirements.txt
index e597d48..6ed7b1b 100644
--- a/mgr/requirements.txt
+++ b/mgr/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