contentdb/app/__init__.py

16 lines
332 B
Python
Raw Normal View History

2018-03-18 18:43:30 +01:00
from flask import *
from flask_user import *
2018-03-18 19:05:53 +01:00
import flask_menu as menu
from flask.ext import markdown
from flask_github import GitHub
2018-03-18 18:43:30 +01:00
app = Flask(__name__)
2018-03-21 23:03:37 +01:00
app.config.from_pyfile("../config.cfg")
2018-03-18 18:43:30 +01:00
2018-03-18 19:05:53 +01:00
menu.Menu(app=app)
2018-03-21 23:03:37 +01:00
markdown.Markdown(app, extensions=["fenced_code"])
2018-03-18 19:05:53 +01:00
github = GitHub(app)
2018-03-20 01:44:47 +01:00
from . import models
from .views import *