You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2018/12/21 04:35:13 UTC

[incubator-superset] branch master updated: minor, auto tune debug mode when use flask_env (#6550)

This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 6a95f80  minor, auto tune debug mode when use flask_env (#6550)
6a95f80 is described below

commit 6a95f8070ae78dd08dca4fe0423c793e3fd819a3
Author: Yongjie Zhao <yo...@gmail.com>
AuthorDate: Fri Dec 21 12:35:06 2018 +0800

    minor, auto tune debug mode when use flask_env (#6550)
    
    * minor, auto tune debug mode when use flask_env
    
    * update changes
---
 superset/config.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/config.py b/superset/config.py
index 988df25..b0fd90e 100644
--- a/superset/config.py
+++ b/superset/config.py
@@ -77,7 +77,7 @@ WTF_CSRF_ENABLED = True
 WTF_CSRF_EXEMPT_LIST = []
 
 # Whether to run the web server in debug mode or not
-DEBUG = False
+DEBUG = os.environ.get('FLASK_ENV') == 'development'
 FLASK_USE_RELOAD = True
 
 # Whether to show the stacktrace on 500 error