phoenix24 commented on a change in pull request #6550: minor, auto tune debug
mode when use flask_env
URL:
https://github.com/apache/incubator-superset/pull/6550#discussion_r242413719
##########
File path: superset/config.py
##########
@@ -77,7 +77,7 @@
WTF_CSRF_EXEMPT_LIST = []
# Whether to run the web server in debug mode or not
-DEBUG = False
+DEBUG = True if os.environ.get('FLASK_ENV') == 'development' else False
Review comment:
Just a quickie suggestion, you might also do this -
`DEBUG = os.environ.get('FLASK_ENV') == 'development'`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]