Merge "To avoid wrong version check for mysqlclient"

This commit is contained in:
Zuul 2020-12-16 20:56:55 +00:00 committed by Gerrit Code Review
commit dda7276191
4 changed files with 4 additions and 3 deletions

View File

@ -14,7 +14,7 @@ apiVersion: v1
appVersion: v1.0.0
description: OpenStack-Helm Horizon
name: horizon
version: 0.1.1
version: 0.1.2
home: https://docs.openstack.org/horizon/latest/
icon: https://www.openstack.org/themes/openstack/images/project-mascots/Horizon/OpenStack_Project_Horizon_vertical.png
sources:

View File

@ -23,6 +23,7 @@ import sys
import pymysql
pymysql.version_info = (1, 3, 13, "final", 0)
pymysql.install_as_MySQLdb()
from django.core.wsgi import get_wsgi_application

View File

@ -78,7 +78,7 @@ function start () {
/tmp/manage.py collectstatic --noinput
/tmp/manage.py compress --force
rm -rf /tmp/_tmp_.secret_key_store.lock /tmp/.secret_key_store
chmod +x ${SITE_PACKAGES_ROOT}/django/core/wsgi.py
exec {{ .Values.conf.software.apache2.binary }} {{ .Values.conf.software.apache2.start_parameters }}
}

View File

@ -23,7 +23,7 @@ import os
import sys
import pymysql
pymysql.version_info = (1, 3, 13, "final", 0)
pymysql.install_as_MySQLdb()
from django.core.management import execute_from_command_line