Closes #6
This commit is contained in:
parent
de094d4bed
commit
bda624e4dc
3 changed files with 14 additions and 4 deletions
|
|
@ -8,9 +8,13 @@ def create_app(test_config=None):
|
|||
app.config.from_mapping(
|
||||
SECRET_KEY='dev',
|
||||
DATABASE=os.path.join(app.instance_path, 'flaskr.sqlite'),
|
||||
REGISTER=False
|
||||
REGISTER=False,
|
||||
NAME='Flaskr'
|
||||
)
|
||||
|
||||
if app.config.get('STATIC_FOLDER') is not None:
|
||||
app.static_folder = app.config.get('STATIC_FOLDER')
|
||||
|
||||
app.wsgi_app = ProxyFix(
|
||||
app.wsgi_app, x_for=1, x_proto=1, x_host=1, x_prefix=1
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue