Exemple #1
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from flask import Blueprint

console = Blueprint('console', __name__, template_folder='templates', static_folder='static')
console.custom = {
	'index': '/index'
}

import views
Exemple #2
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from flask import Blueprint
from web import app

blog = Blueprint('blog', __name__, template_folder='templates', static_folder='static')
blog.custom = {
	'index': '/',
	'music_dir': app.config['ROOT_DIR'] + '/blog/static/musics',
    'video_dir': app.config['ROOT_DIR'] + '/blog/static/videos',
    'video_cdn_json': app.config['ROOT_DIR'] + '/blog/static/videos/stream.json',
    'root_dir': app.config['ROOT_DIR'] + '/blog',
}

import views