Merge branch 'master' of http://210.77.77.77/xieshen/newmediamonitoring into master
This commit is contained in:
commit
2a2f31914d
|
@ -109,3 +109,11 @@ def get_task(request):
|
||||||
result['added'] = task.added.strftime("%Y-%m-%d %H:%M:%S")
|
result['added'] = task.added.strftime("%Y-%m-%d %H:%M:%S")
|
||||||
return JsonResponse({'status': 'success', 'message': result})
|
return JsonResponse({'status': 'success', 'message': result})
|
||||||
|
|
||||||
|
@csrf_exempt
|
||||||
|
def create_test_task(request):
|
||||||
|
# if request.method == 'GET':
|
||||||
|
# return HttpResponse(status=405)
|
||||||
|
# channel_layer = get_channel_layer()
|
||||||
|
# async_to_sync(channel_layer.group_send)(
|
||||||
|
# "testroom", {"type": "chat.message", "message": "helo"})
|
||||||
|
return JsonResponse({'status': 'success'})
|
||||||
|
|
Loading…
Reference in New Issue