comparison piecrust/admin/web.py @ 808:8f2d32f90095

admin: Don't have the static folder for the app collide with the blueprint's.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 17 Dec 2016 19:54:52 -0800
parents a9f4a6e60b0b
children 82509bce94ca
comparison
equal deleted inserted replaced
807:4d0f80b2ba7f 808:8f2d32f90095
9 9
10 logger = logging.getLogger(__name__) 10 logger = logging.getLogger(__name__)
11 11
12 12
13 def create_foodtruck_app(extra_settings=None): 13 def create_foodtruck_app(extra_settings=None):
14 app = Flask(__name__.split('.')[0]) 14 app = Flask(__name__.split('.')[0], static_folder=None)
15 app.config.from_object('piecrust.admin.settings') 15 app.config.from_object('piecrust.admin.settings')
16 app.config.from_envvar('FOODTRUCK_SETTINGS', silent=True) 16 app.config.from_envvar('FOODTRUCK_SETTINGS', silent=True)
17 if extra_settings: 17 if extra_settings:
18 app.config.update(extra_settings) 18 app.config.update(extra_settings)
19 19