Commit 8c552ccc authored by 黄成维's avatar 黄成维

fix signal send

parent 054edeef
...@@ -41,7 +41,7 @@ define("host", default='0.0.0.0', help="run port on given host", type=str) ...@@ -41,7 +41,7 @@ define("host", default='0.0.0.0', help="run port on given host", type=str)
def django_request_support(func): def django_request_support(func):
@functools.wraps(func) @functools.wraps(func)
def _deco(*args, **kwargs): def _deco(*args, **kwargs):
request_started.send_robust() request_started.send_robust(func)
response = func(*args, **kwargs) response = func(*args, **kwargs)
request_finished.send_robust() request_finished.send_robust()
return response return response
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment