diff --git a/doc/refstack.md b/doc/refstack.md index 200dd0fa..eb650a14 100755 --- a/doc/refstack.md +++ b/doc/refstack.md @@ -61,7 +61,7 @@ Refstack Quickstart - At the minimum the value of the `connection` field in the `[database]` section should be updated. For example, if the backend database is MySQL then update: `#connection = ` to - `connection = mysql://refstack:@x.x.x.x/refstack` + `connection = mysql+pymysql://refstack:@x.x.x.x/refstack` ####Database sync diff --git a/refstack/api/app.wsgi b/refstack/api/app.wsgi new file mode 100644 index 00000000..683e71f5 --- /dev/null +++ b/refstack/api/app.wsgi @@ -0,0 +1,19 @@ +# Copyright (c) 2015 Mirantis, Inc. +# All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, 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. + +from refstack.api import app +from refstack.api import config as api_config + +application = app.setup_app(api_config) \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 283e545a..4a762616 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,3 +10,4 @@ pyOpenSSL==0.13 pycrypto>=2.6 requests==1.2.3 jsonschema>=2.0.0,<3.0.0 +PyMySQL>=0.6.2,!=0.6.4 \ No newline at end of file