请求参数
#GET请求参数获取
print(request.GET)
print(request.GET.get("name"))
print(request.GET.getlist('num'))
#POST参数获取
print(request.POST.get("name"))
print(request.POST.getlist("num"))
#请求路径
print(request.path)
#请求方法
print(request.method)
#用户请求的原生字典
print(request.META)
# 是否是ajax请求
print(request.is_ajax)
ip
request.META['REMOTE_ADDR']