forked from orbit-oss/flask
Merge remote-tracking branch 'origin/stable'
This commit is contained in:
commit
d3b78fd18a
2 changed files with 2 additions and 8 deletions
|
|
@ -56,10 +56,7 @@ directory should be treated as a package.
|
||||||
app.config.from_mapping(test_config)
|
app.config.from_mapping(test_config)
|
||||||
|
|
||||||
# ensure the instance folder exists
|
# ensure the instance folder exists
|
||||||
try:
|
os.makedirs(app.instance_path, exist_ok=True)
|
||||||
os.makedirs(app.instance_path)
|
|
||||||
except OSError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
# a simple page that says hello
|
# a simple page that says hello
|
||||||
@app.route('/hello')
|
@app.route('/hello')
|
||||||
|
|
|
||||||
|
|
@ -21,10 +21,7 @@ def create_app(test_config=None):
|
||||||
app.config.update(test_config)
|
app.config.update(test_config)
|
||||||
|
|
||||||
# ensure the instance folder exists
|
# ensure the instance folder exists
|
||||||
try:
|
os.makedirs(app.instance_path, exist_ok=True)
|
||||||
os.makedirs(app.instance_path)
|
|
||||||
except OSError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
@app.route("/hello")
|
@app.route("/hello")
|
||||||
def hello():
|
def hello():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue