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()
def before_request(): return core_before_request()