<s> import os <EOL> import logging <EOL> import tornado . web <EOL> import tornado . ioloop <EOL> from dinosaurs import views <EOL> from dinosaurs import settings <EOL> from dinosaurs . transaction import database <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> logging . basicConfig ( level = logging . INFO ) <EOL> if not os . path . isfile ( settings . DATABASE ) : <EOL> database . db . create_tables ( [ database . Transaction ] ) <EOL> application = tornado . web . Application ( [ <EOL> ( r'<STR_LIT>' , views . DomainAPIHandler ) , <EOL> ( r'<STR_LIT>' , views . TransactionAPIHandler ) , <EOL> ( r'<STR_LIT>' , views . EmailAPIHandler ) , <EOL> ( r'<STR_LIT:/>' , views . SingleStatic , { '<STR_LIT:path>' : '<STR_LIT>' } ) , <EOL> ( r'<STR_LIT>' , tornado . web . StaticFileHandler , { '<STR_LIT:path>' : '<STR_LIT>' } ) , <EOL> ] , debug = settings . DEBUG ) <EOL> application . listen ( <NUM_LIT> ) <EOL> tornado . ioloop . IOLoop . instance ( ) . start ( ) </s>
