Skip to content

Commit

Permalink
Fix a DeprecationWarning about the Flask.static_path parameter. (getr…
Browse files Browse the repository at this point in the history
  • Loading branch information
jezdez authored and harveyrendell committed Nov 14, 2019
1 parent 4bdda34 commit 922310c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redash/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def create_app():
app = Flask(__name__,
template_folder=settings.STATIC_ASSETS_PATH,
static_folder=settings.STATIC_ASSETS_PATH,
static_path='/static')
static_url_path='/static')

# Make sure we get the right referral address even behind proxies like nginx.
app.wsgi_app = ProxyFix(app.wsgi_app, settings.PROXIES_COUNT)
Expand Down

0 comments on commit 922310c

Please sign in to comment.