2018-03-18 18:43:30 +01:00
|
|
|
from app import app
|
|
|
|
from flask import *
|
|
|
|
from flask_user import *
|
|
|
|
from flask_login import login_user, logout_user
|
|
|
|
from app.models import *
|
2018-03-18 19:05:53 +01:00
|
|
|
import flask_menu as menu
|
|
|
|
from flask.ext import markdown
|
2018-03-18 18:43:30 +01:00
|
|
|
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)
|
|
|
|
|
|
|
|
@app.route('/')
|
|
|
|
@menu.register_menu(app, '.', 'Home')
|
|
|
|
def home_page():
|
|
|
|
return render_template('index.html')
|
2018-03-20 01:44:47 +01:00
|
|
|
|
|
|
|
from . import users, githublogin, packages
|