Code Review
/
vfc
/
nfvo
/
lcm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
f736ce5
)
Fix GPL license problems for vfc-nfvo-lcm
05/33905/1
author
fujinhua
<fu.jinhua@zte.com.cn>
Sat, 3 Mar 2018 02:50:56 +0000
(10:50 +0800)
committer
fujinhua
<fu.jinhua@zte.com.cn>
Sat, 3 Mar 2018 02:50:56 +0000
(10:50 +0800)
Change Mysql connector to PyMySQL
Change-Id: Idc7912dc240678e9b30c9cbbdb28a9bc73298019
Issue-ID: VFC-787
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
lcm/__init__.py
patch
|
blob
|
history
requirements.txt
patch
|
blob
|
history
diff --git
a/lcm/__init__.py
b/lcm/__init__.py
index
5580cc3
..
a1f872b
100644
(file)
--- a/
lcm/__init__.py
+++ b/
lcm/__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
74390f4
..
687b38f
100644
(file)
--- 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