contentdb/app/views/__init__.py
2018-03-19 18:08:41 +00:00

23 lines
567 B
Python

from app import app
from flask import *
from flask_user import *
from flask_login import login_user, logout_user
from app.models import *
import flask_menu as menu
from flask.ext import markdown
from sqlalchemy import func
from werkzeug.contrib.cache import SimpleCache
cache = SimpleCache()
# TODO: remove on production!
@app.route('/static/<path:path>')
def send_static(path):
return send_from_directory('static', path)
import users, githublogin, mods
@app.route('/')
@menu.register_menu(app, '.', 'Home')
def home_page():
return render_template('index.html')