<s> from os import path <EOL> from flask import Flask , send_from_directory <EOL> app = None <EOL> def initialize_app ( settings ) : <EOL> global app <EOL> app = Flask ( __name__ ) <EOL> app . config . from_object ( settings ) <EOL> @ app . route ( '<STR_LIT>' ) <EOL> def favicon ( ) : <EOL> return send_from_directory ( path . join ( app . static_folder , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> '<STR_LIT>' , mimetype = '<STR_LIT>' ) <EOL> import models ; models <EOL> import assets ; assets <EOL> import views ; views <EOL> saved_handlers = app . handle_exception , app . handle_user_exception <EOL> import api ; api <EOL> app . handle_exception , app . handle_user_exception = saved_handlers <EOL> return app </s>
