aboutsummaryrefslogtreecommitdiffstats
path: root/python/Dawn/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/Dawn/__init__.py')
-rw-r--r--python/Dawn/__init__.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/python/Dawn/__init__.py b/python/Dawn/__init__.py
deleted file mode 100644
index 0d447845..00000000
--- a/python/Dawn/__init__.py
+++ /dev/null
@@ -1,25 +0,0 @@
-import logging
-
-from flask import Flask
-from flask_sqlalchemy import SQLAlchemy
-from sqlalchemy import MetaData
-from flask_wtf.csrf import CSRFProtect
-
-app = Flask(__name__)
-app.config.from_envvar("CONF")
-csrf = CSRFProtect(app)
-db = SQLAlchemy(app, metadata=MetaData(schema=app.config["SCHEMA"]))
-
-if not app.debug:
- fh = logging.FileHandler(filename=app.config["LOGFILE"])
- fh.setLevel(logging.INFO)
- formatter = logging.Formatter(
- "%(asctime)s - %(name)s - %(levelname)s - %(message)s"
- )
- fh.setFormatter(formatter)
- app.logger.addHandler(fh)
-
-import Dawn.views
-
-app.jinja_env.globals.update(bus_day=Dawn.models.bus_day)
-app.jinja_env.filters["thousands"] = "{0:,.2f}".format