summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorying.yunlong <ying.yunlong@zte.com.cn>2018-03-02 15:46:53 +0800
committerying.yunlong <ying.yunlong@zte.com.cn>2018-03-02 15:46:53 +0800
commit27a934dc57468b6f7574c942062c44c82a40ad72 (patch)
tree551e80704d784fa37c34b2a136830478fffcb057 /res
parentb562bfeaa0759dc19d1ccde0c14db460265f8b98 (diff)
Replace vfc-vnfmgr mysql connector with PyMySQL
Change-Id: I46b5a353f62c3432f17d57f882f05616e2af7f8f Issue-ID: VFC-786 Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
Diffstat (limited to 'res')
-rw-r--r--res/requirements.txt2
-rw-r--r--res/res/__init__.py3
2 files changed, 4 insertions, 1 deletions
diff --git a/res/requirements.txt b/res/requirements.txt
index 07ea566..b20fefc 100644
--- a/res/requirements.txt
+++ b/res/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
diff --git a/res/res/__init__.py b/res/res/__init__.py
index c7b6818..68cf954 100644
--- a/res/res/__init__.py
+++ b/res/res/__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()