<s> from flask import Flask <EOL> from flask . ext import admin <EOL> class FirstView ( admin . BaseView ) : <EOL> @ admin . expose ( '<STR_LIT:/>' ) <EOL> def index ( self ) : <EOL> return self . render ( '<STR_LIT>' ) <EOL> class SecondView ( admin . BaseView ) : <EOL> @ admin . expose ( '<STR_LIT:/>' ) <EOL> def index ( self ) : <EOL> return self . render ( '<STR_LIT>' ) <EOL> app = Flask ( __name__ , template_folder = '<STR_LIT>' ) <EOL> @ app . route ( '<STR_LIT:/>' ) <EOL> def index ( ) : <EOL> return '<STR_LIT>' <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> admin1 = admin . Admin ( app , url = '<STR_LIT>' ) <EOL> admin1 . add_view ( FirstView ( ) ) <EOL> admin2 = admin . Admin ( app , url = '<STR_LIT>' , endpoint = '<STR_LIT>' ) <EOL> admin2 . add_view ( SecondView ( ) ) <EOL> app . run ( debug = True ) </s>
