其他django获得用户ip地址 django获得用户ip地址def get_client_ip(request): x_forwarded_for = request.META.get('HTTP_X_FORWARDED_FOR') if x_forwarded_for: ip = x_forwarded_for.split(……继续阅读 » 水墨上仙 8年前 (2017-05-31) 2430浏览 523个赞