Django后端当中如何去获取客户端的ip
摘要:
x_forwarded_for = request.META.get('HTTP_X_FORWARDED_FOR') if x_forwarded_for: ip = x_forwarded_for.split(',')[0] else: ip = request.META.get('REMOTE_ 阅读全文
posted @ 2022-08-23 17:36 一先生94 阅读(378) 评论(0) 推荐(0) 编辑