Skip to main content

django-ip

Simple return user’s real IP address in Django

Installation

pip install django-ip

Usage

# Need Setting
request.client_ip

# Not Need Setting
from ipaddr import client_ip
def xxx(request):
    ipaddr = client_ip(request)

Settings.py

# Use `MIDDLEWARE_CLASSES` prior to Django 1.10
MIDDLEWARE = (
    ...
    'ipaddr.middleware.IPAddrMiddleware',
    ...
)

Metadata

Release files for django-ip 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-ip 1.0.2
File Size Uploaded Provenance Actions
django-ip-1.0.2.tar.gz 1.9 kB Without provenance Details for django-ip-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-ip 1.0.2
File Interpreter ABI Platform Actions
django_ip-1.0.2-py2.py3-none-any.whl Python 3, Python 2 none any Details for django_ip-1.0.2-py2.py3-none-any.whl

Total release size: 5.8 kB

Release files / django-ip-1.0.2.tar.gz

Download URL django-ip-1.0.2.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b2201f9721291f03c903c1712cf615fb9e1380b9387c4cd1b0e1d64e60cecebc
BLAKE2b-256 checksum
How to use checksums
a6960c9a492fd89bc8ba0bba6133349ecc770dab48924b09a10bed57d24eb2b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_ip-1.0.2-py2.py3-none-any.whl

Download URL django_ip-1.0.2-py2.py3-none-any.whl
Size 3.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
211789f1ca5e89afaeb98d4fe49ac0ebc51becc44316daf642858cdb3fb45d73
BLAKE2b-256 checksum
How to use checksums
42deca54d8d5188fd2d8284f554bb525549b4ee4e6a0dc72aff85a3b91bfdc8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-ip 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page