<s> """<STR_LIT>""" <EOL> import datetime <EOL> import logging <EOL> import os <EOL> from flask import Flask , url_for <EOL> from flask . ext . cache import Cache <EOL> from flask . ext . login import LoginManager <EOL> from flask . ext . mail import Mail <EOL> from flask . ext . sqlalchemy import SQLAlchemy <EOL> import jinja2 <EOL> import config <EOL> app = Flask ( __name__ ) <EOL> app . config . from_object ( config ) <EOL> if '<STR_LIT>' in os . environ : <EOL> app . config . from_envvar ( '<STR_LIT>' ) <EOL> db = SQLAlchemy ( <EOL> app , <EOL> session_options = dict ( expire_on_commit = False ) ) <EOL> login = LoginManager ( app ) <EOL> login . login_view = '<STR_LIT>' <EOL> login . refresh_view = '<STR_LIT>' <EOL> cache = Cache ( app ) <EOL> mail = Mail ( app ) <EOL> from dpxdt . server import api <EOL> from dpxdt . server import auth <EOL> from dpxdt . server import emails <EOL> from dpxdt . server import frontend <EOL> from dpxdt . server import work_queue <EOL> from dpxdt . server import work_queue_handlers </s>
