2018-03-18 17:43:30 +00:00
|
|
|
from flask import *
|
|
|
|
from flask_user import *
|
2018-03-18 18:05:53 +00:00
|
|
|
import flask_menu as menu
|
2018-05-14 00:40:34 +01:00
|
|
|
from flask_mail import Mail
|
2018-03-18 18:05:53 +00:00
|
|
|
from flask.ext import markdown
|
|
|
|
from flask_github import GitHub
|
2018-05-13 18:37:57 +01:00
|
|
|
from flask_wtf.csrf import CsrfProtect
|
2018-03-24 02:36:14 +00:00
|
|
|
import os
|
2018-03-18 17:43:30 +00:00
|
|
|
|
|
|
|
app = Flask(__name__)
|
2018-03-24 02:36:14 +00:00
|
|
|
app.config.from_pyfile(os.environ["FLASK_CONFIG"])
|
2018-03-18 17:43:30 +00:00
|
|
|
|
2018-03-18 18:05:53 +00:00
|
|
|
menu.Menu(app=app)
|
2018-03-24 19:19:04 +00:00
|
|
|
markdown.Markdown(app, extensions=["fenced_code"], safe_mode=True, output_format="html5")
|
2018-03-18 18:05:53 +00:00
|
|
|
github = GitHub(app)
|
2018-05-13 18:37:57 +01:00
|
|
|
csrf = CsrfProtect(app)
|
2018-05-14 00:40:34 +01:00
|
|
|
mail = Mail(app)
|
2018-03-18 18:05:53 +00:00
|
|
|
|
2018-05-11 12:57:16 +01:00
|
|
|
from . import models, tasks
|
2018-03-20 00:44:47 +00:00
|
|
|
from .views import *
|