<s> from flask import Flask , render_template <EOL> from flask_wtf import Form <EOL> from wtforms import RadioField <EOL> SECRET_KEY = '<STR_LIT>' <EOL> app = Flask ( __name__ ) <EOL> app . config . from_object ( __name__ ) <EOL> class SimpleForm ( Form ) : <EOL> example = RadioField ( '<STR_LIT>' , choices = [ ( '<STR_LIT:value>' , '<STR_LIT:description>' ) , ( '<STR_LIT>' , '<STR_LIT>' ) ] ) <EOL> @ app . route ( '<STR_LIT:/>' , methods = [ '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> def hello_world ( ) : <EOL> form = SimpleForm ( ) <EOL> if form . validate_on_submit ( ) : <EOL> print form . example . data <EOL> else : <EOL> print form . errors <EOL> return render_template ( '<STR_LIT>' , form = form ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> app . run ( debug = True ) </s>
