Name correctly this app

This commit is contained in:
Michel Roux 2019-12-26 23:12:56 +01:00
parent c473c7fb86
commit d925f21b01

View File

@ -23,6 +23,7 @@ APP_PORT = environ.get('FLASK_PORT', 5000)
CACHE_TIMEOUT = environ.get('CACHE_TIMEOUT', 60 * 60)
app = Flask(__name__)
app.name = 'PyNyaaTa'
app.secret_key = urandom(24).hex()
app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://%s:%s@%s/%s?charset=utf8mb4' % (
db_user, db_password, db_host, db_name