예제 #1
0
def generate_404():
    """
    Generate 404 page
    """
    with open(os.path.join(_deploy_dir, '404.html'), 'w',
              encoding='utf-8') as f:
        f.write(handler.page_not_found()[0])
예제 #2
0
파일: app.py 프로젝트: cuteluo1983/blog-a
def page_not_found(e):
    return handler.page_not_found()
예제 #3
0
def generate_404():
    """
    Generate 404 page
    """
    with open(os.path.join(_deploy_dir, '404.html'), 'w', encoding='utf-8') as f:
        f.write(handler.page_not_found()[0])
예제 #4
0
파일: app.py 프로젝트: BlogTANG/blog-a
def page_not_found(e):
    return handler.page_not_found()