<s> from flask import Flask <EOL> import flask_admin as admin <EOL> class MyAdminView ( admin . BaseView ) : <EOL> @ admin . expose ( '<STR_LIT:/>' ) <EOL> def index ( self ) : <EOL> return self . render ( '<STR_LIT>' ) <EOL> class AnotherAdminView ( admin . BaseView ) : <EOL> @ admin . expose ( '<STR_LIT:/>' ) <EOL> def index ( self ) : <EOL> return self . render ( '<STR_LIT>' ) <EOL> @ admin . expose ( '<STR_LIT>' ) <EOL> def test ( self ) : <EOL> return self . render ( '<STR_LIT>' ) <EOL> app = Flask ( __name__ , template_folder = '<STR_LIT>' ) <EOL> app . debug = True <EOL> @ app . route ( '<STR_LIT:/>' ) <EOL> def index ( ) : <EOL> return '<STR_LIT>' <EOL> admin = admin . Admin ( name = "<STR_LIT>" , template_mode = '<STR_LIT>' ) <EOL> admin . add_view ( MyAdminView ( name = "<STR_LIT>" , category = '<STR_LIT>' ) ) <EOL> admin . add_view ( AnotherAdminView ( name = "<STR_LIT>" , category = '<STR_LIT>' ) ) <EOL> admin . init_app ( app ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> app . run ( ) </s>
