instance to /tmp
This commit is contained in:
parent
127440c727
commit
28d50f431a
1 changed files with 2 additions and 1 deletions
|
|
@ -5,7 +5,8 @@ from flask import Flask
|
||||||
|
|
||||||
def create_app(test_config=None):
|
def create_app(test_config=None):
|
||||||
"""Create and configure an instance of the Flask application."""
|
"""Create and configure an instance of the Flask application."""
|
||||||
app = Flask(__name__, instance_relative_config=True)
|
# app = Flask(__name__, instance_relative_config=True)
|
||||||
|
app = Flask(__name__, instance_path='/tmp')
|
||||||
app.config.from_mapping(
|
app.config.from_mapping(
|
||||||
# a default secret that should be overridden by instance config
|
# a default secret that should be overridden by instance config
|
||||||
SECRET_KEY="dev",
|
SECRET_KEY="dev",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue