server.py app = Flask(name, static_folder='webapp/static', template_folder='webapp/templates') from webapp.views.news import news_app app.register_blueprint(news_app)
webapp.views.news.py news_app = Blueprint('news', name)
@news_app.route('/') def index(): return 'Hello World in news controller'
Recommended Posts