示例#1
0
文件: routes.py 项目: leClub/violence
def lib_static_proxy(path):
    """ send_static_file will guess the correct MIME type"""
    return app.send_static_file(os.path.join('lib', path))
示例#2
0
文件: routes.py 项目: leClub/violence
def img_static_proxy(path):
    # send_static_file will guess the correct MIME type
    return app.send_static_file(os.path.join('img', path))
示例#3
0
def send_text_file(file_name):
    """Send your static text file."""
    file_dot_text = file_name + ".txt"
    return app.send_static_file(file_dot_text)
示例#4
0
文件: routes.py 项目: leClub/violence
def css_static_proxy(path):
    """ send_static_file will guess the correct MIME type"""
    print os.path.join('css', path)
    return app.send_static_file(os.path.join('css', path))
示例#5
0
def root():
    return app.send_static_file("index.html")
示例#6
0
def img_static_proxy(path):
    # send_static_file will guess the correct MIME type
    return app.send_static_file(os.path.join('img', path))
示例#7
0
def lib_static_proxy(path):
    """ send_static_file will guess the correct MIME type"""
    return app.send_static_file(os.path.join('lib', path))
示例#8
0
def css_static_proxy(path):
    """ send_static_file will guess the correct MIME type"""
    print os.path.join('css', path)
    return app.send_static_file(os.path.join('css', path))
示例#9
0
def index():
    return app.send_static_file('index.html')