shuxiang commented on issue #4149: specify blureprints can't import modules from superset URL: https://github.com/apache/incubator-superset/issues/4149#issuecomment-355190176 superset_config.py is working simple_mod.py: ``` from flask import Blueprint simple_page = Blueprint('simple_page', name, template_folder='templates') @simple_page.route('/', defaults={'page': 'index'}) @simple_page.route('/') def show(page): return 'ok' ``` http visit shows 'ok' but, when i try to import modules from superset, it doesn't work new simple_mod.py: ``` from flask import Blueprint from superset.models.core import KeyValue simple_page = Blueprint('simple_page', name, template_folder='templates') @simple_page.route('/', defaults={'page': 'index'}) @simple_page.route('/') def show(page): return 'ok' ```
---------------------------------------------------------------- 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
