# -*- coding: utf-8 -*-

from urls import app
from config.config import configs
from api import datetime_filter

import sys
reload(sys)
sys.setdefaultencoding('utf-8')

def get_mysql_conn_str():
    db_user = configs.db.user
    db_pass = configs.db.password
    db_name = configs.db.database
    db_host = configs.db.host
    db_port = configs.db.port

    return 'mysql+mysqlconnector://' + db_user + ':' + db_pass + '@' + db_host + ':' + str(db_port) + '/' + db_name


def run_app(environ, start_response):
    app.config['SQLALCHEMY_DATABASE_URI'] = get_mysql_conn_str()
    app.config.from_object('config.config')
    app.jinja_env.filters['datetime'] = datetime_filter
    return app(environ, start_response)

if __name__=='__main__':
    app.config['SQLALCHEMY_DATABASE_URI'] = get_mysql_conn_str()
    app.config.from_object('config.config')
    app.jinja_env.filters['datetime'] = datetime_filter
    app.run(debug=True, host='0.0.0.0', port=5000)

3688e23721141f7d594856c9adaf1e3dc37f8bc0
<mask token>


def get_mysql_conn_str():
    db_user = configs.db.user
    db_pass = configs.db.password
    db_name = configs.db.database
    db_host = configs.db.host
    db_port = configs.db.port
    return ('mysql+mysqlconnector://' + db_user + ':' + db_pass + '@' +
        db_host + ':' + str(db_port) + '/' + db_name)


<mask token>

<mask token>


def get_mysql_conn_str():
    db_user = configs.db.user
    db_pass = configs.db.password
    db_name = configs.db.database
    db_host = configs.db.host
    db_port = configs.db.port
    return ('mysql+mysqlconnector://' + db_user + ':' + db_pass + '@' +
        db_host + ':' + str(db_port) + '/' + db_name)


def run_app(environ, start_response):
    app.config['SQLALCHEMY_DATABASE_URI'] = get_mysql_conn_str()
    app.config.from_object('config.config')
    app.jinja_env.filters['datetime'] = datetime_filter
    return app(environ, start_response)


<mask token>

<mask token>
reload(sys)
sys.setdefaultencoding('utf-8')


def get_mysql_conn_str():
    db_user = configs.db.user
    db_pass = configs.db.password
    db_name = configs.db.database
    db_host = configs.db.host
    db_port = configs.db.port
    return ('mysql+mysqlconnector://' + db_user + ':' + db_pass + '@' +
        db_host + ':' + str(db_port) + '/' + db_name)


def run_app(environ, start_response):
    app.config['SQLALCHEMY_DATABASE_URI'] = get_mysql_conn_str()
    app.config.from_object('config.config')
    app.jinja_env.filters['datetime'] = datetime_filter
    return app(environ, start_response)


if __name__ == '__main__':
    app.config['SQLALCHEMY_DATABASE_URI'] = get_mysql_conn_str()
    app.config.from_object('config.config')
    app.jinja_env.filters['datetime'] = datetime_filter
    app.run(debug=True, host='0.0.0.0', port=5000)

from urls import app
from config.config import configs
from api import datetime_filter
import sys
reload(sys)
sys.setdefaultencoding('utf-8')


def get_mysql_conn_str():
    db_user = configs.db.user
    db_pass = configs.db.password
    db_name = configs.db.database
    db_host = configs.db.host
    db_port = configs.db.port
    return ('mysql+mysqlconnector://' + db_user + ':' + db_pass + '@' +
        db_host + ':' + str(db_port) + '/' + db_name)


def run_app(environ, start_response):
    app.config['SQLALCHEMY_DATABASE_URI'] = get_mysql_conn_str()
    app.config.from_object('config.config')
    app.jinja_env.filters['datetime'] = datetime_filter
    return app(environ, start_response)


if __name__ == '__main__':
    app.config['SQLALCHEMY_DATABASE_URI'] = get_mysql_conn_str()
    app.config.from_object('config.config')
    app.jinja_env.filters['datetime'] = datetime_filter
    app.run(debug=True, host='0.0.0.0', port=5000)

# -*- coding: utf-8 -*-

from urls import app
from config.config import configs
from api import datetime_filter

import sys
reload(sys)
sys.setdefaultencoding('utf-8')

def get_mysql_conn_str():
    db_user = configs.db.user
    db_pass = configs.db.password
    db_name = configs.db.database
    db_host = configs.db.host
    db_port = configs.db.port

    return 'mysql+mysqlconnector://' + db_user + ':' + db_pass + '@' + db_host + ':' + str(db_port) + '/' + db_name


def run_app(environ, start_response):
    app.config['SQLALCHEMY_DATABASE_URI'] = get_mysql_conn_str()
    app.config.from_object('config.config')
    app.jinja_env.filters['datetime'] = datetime_filter
    return app(environ, start_response)

if __name__=='__main__':
    app.config['SQLALCHEMY_DATABASE_URI'] = get_mysql_conn_str()
    app.config.from_object('config.config')
    app.jinja_env.filters['datetime'] = datetime_filter
    app.run(debug=True, host='0.0.0.0', port=5000)
