コード例 #1
0
ファイル: app.py プロジェクト: imfht/flaskapps
def before_request():
    """Function called on each request.
    We need to avoid calling core_before_request on /static/ pages.
    In a production environment this is not needed since static requests are
    server by Apache/Nginx, but we need to check if Bombolone is run locally.
    
    """
    if DEBUG == False:
        return core_before_request()
    if not request.path.startswith('/static/'): 
        return core_before_request()
コード例 #2
0
ファイル: bombolone.py プロジェクト: andreasacca/bombolone
def before_request():
    return core_before_request()
コード例 #3
0
def before_request():
    return core_before_request()