summaryrefslogtreecommitdiffstats
path: root/ogcp/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp/__init__.py')
-rw-r--r--ogcp/__init__.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/ogcp/__init__.py b/ogcp/__init__.py
index 1fda3f1..58ba0c3 100644
--- a/ogcp/__init__.py
+++ b/ogcp/__init__.py
@@ -1,6 +1,14 @@
+from flask_wtf.csrf import CSRFProtect
+from flask_bootstrap import Bootstrap
from flask_babel import Babel
from flask import Flask
+from os import urandom
+
app = Flask(__name__)
babel = Babel(app)
+csrf = CSRFProtect(app)
+bootstrap = Bootstrap(app)
+
+app.secret_key = urandom(16)
import ogcp.views