<s> from flask import Flask , render_template , flash , redirect , url_for <EOL> TWILL_ENABLED = True <EOL> SECRET_KEY = '<STR_LIT>' <EOL> DEBUG = True <EOL> def create_app ( ) : <EOL> app = Flask ( __name__ ) <EOL> app . config . from_object ( __name__ ) <EOL> @ app . route ( "<STR_LIT:/>" ) <EOL> def index ( ) : <EOL> return render_template ( "<STR_LIT>" ) <EOL> @ app . route ( "<STR_LIT>" , methods = ( "<STR_LIT:POST>" , ) ) <EOL> def submit ( ) : <EOL> flash ( "<STR_LIT>" ) <EOL> return redirect ( url_for ( "<STR_LIT:index>" ) ) <EOL> return app </s>
