<s> from flask . ext . script import Manager <EOL> from fbone import create_app <EOL> from fbone . extensions import db <EOL> from fbone . user import User , ADMIN , ACTIVE <EOL> from fbone . utils import MALE <EOL> app = create_app ( ) <EOL> manager = Manager ( app ) <EOL> @ manager . command <EOL> def run ( ) : <EOL> """<STR_LIT>""" <EOL> app . run ( ) <EOL> @ manager . command <EOL> def initdb ( ) : <EOL> """<STR_LIT>""" <EOL> db . drop_all ( ) <EOL> db . create_all ( ) <EOL> admin = User ( <EOL> name = u'<STR_LIT>' , <EOL> email = u'<STR_LIT>' , <EOL> password = u'<STR_LIT>' , <EOL> role_code = ADMIN , <EOL> status_code = ACTIVE ) <EOL> db . session . add ( admin ) <EOL> db . session . commit ( ) <EOL> manager . add_option ( '<STR_LIT:-c>' , '<STR_LIT>' , <EOL> dest = "<STR_LIT>" , <EOL> required = False , <EOL> help = "<STR_LIT>" ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> manager . run ( ) </s>
