Skip to main content

# Restrict admin django cms

django-adminrestrict-CDSP enables you to block access for django 1.8 or more (work with django CMS) unless requests come from specific IP addresses.

#Installation

pip install django-adminrestrict-CDSP

#Configuration

Add the apps to settings.py:

INSTALLED_APPS = (
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    ...
    'restrictadmindjango',
    ...
)

Next, install the FailedLoginMiddleware middleware:

MIDDLEWARE_CLASSES = (
    'restrict_admin_django_cms.middleware.RestrictAdminDjangoCMSMiddleware'
)
Add in your settings.py :

If you are using Django CMS, you can use CMS_INTERNAL_IPS = […] If you are using only Django, you have to use ALLOWED_ADMIN_IPS = […]

Metadata

Release files for django-adminrestrict-CDSP 1.0.3

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-adminrestrict-CDSP 1.0.3
File Size Uploaded Provenance
django-adminrestrict-CDSP-1.0.3.tar.gz 3.5 kB Without provenance Details

Release files / django-adminrestrict-CDSP-1.0.3.tar.gz

Download URL django-adminrestrict-CDSP-1.0.3.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2f96d4a8bb7c521d1f5cca7b1e163803b087af16ed4b63012864a9693800b91c
BLAKE2b-256 checksum
How to use checksums
94ded408cac0834b481b2cd72f7c502a968f18c23053e6c77fd4fcfe14a92277
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-adminrestrict-CDSP 1.0.3

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.3 This release

1 release file 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