Django Client IP
Project description
Simple return user’s real IP address in Django
Installation
pip install django-ip
Usage
# Need Setting request.client_ip # Not Need Setting from ipaadr import client_ip def xxx(request): ipaddr = client_ip(request)
Settings.py
# Use `MIDDLEWARE_CLASSES` prior to Django 1.10 MIDDLEWARE = ( ... 'ipaddr.middleware.IPAddrMiddleware', ... )
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-ip-1.0.0.tar.gz
(1.7 kB
view hashes)
Built Distribution
Close
Hashes for django_ip-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59e4266e01266d0943a4c1e937a8407284602ff414bfa8630ff0ae4a21f0cacb |
|
MD5 | 2185582bdb74af65f8ebb323c588199d |
|
BLAKE2b-256 | ce93cb56f3860ba50fcbf1ad3c2793cabfa95e351396541a18a47a012307400d |