Fix GPL license problems for vfc-nfvo-catalog 07/33907/1
authorfujinhua <fu.jinhua@zte.com.cn>
Sat, 3 Mar 2018 02:59:26 +0000 (10:59 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Sat, 3 Mar 2018 02:59:26 +0000 (10:59 +0800)
Change Mysql connector to PyMySQL

Change-Id: I30482af9aa12c3a9249259fa3cff213f79d2d283
Issue-ID: VFC-787
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
catalog/__init__.py
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 8442b51..9757532 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