diff options
author | fujinhua <fu.jinhua@zte.com.cn> | 2018-03-03 10:59:26 +0800 |
---|---|---|
committer | fujinhua <fu.jinhua@zte.com.cn> | 2018-03-03 10:59:26 +0800 |
commit | eac7ae75bc674379b60aaa49a653256f82e22a32 (patch) | |
tree | bb1df997457efe1f75d35a7c692873c12cef1a93 | |
parent | f95f792d9cd6ee3858e4d3bf89d23b1a461075ef (diff) |
Fix GPL license problems for vfc-nfvo-catalog
Change Mysql connector to PyMySQL
Change-Id: I30482af9aa12c3a9249259fa3cff213f79d2d283
Issue-ID: VFC-787
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r-- | catalog/__init__.py | 3 | ||||
-rw-r--r-- | requirements.txt | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/catalog/__init__.py b/catalog/__init__.py index c7b6818e..68cf9541 100644 --- a/catalog/__init__.py +++ b/catalog/__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 8442b511..97575326 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 |