Skip to main content

Django admin restriction

Project description

# 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 = […]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-adminrestrict-CDSP-1.0.3.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file django-adminrestrict-CDSP-1.0.3.tar.gz.

File metadata

File hashes

Hashes for django-adminrestrict-CDSP-1.0.3.tar.gz
Algorithm Hash digest
SHA256 2f96d4a8bb7c521d1f5cca7b1e163803b087af16ed4b63012864a9693800b91c
MD5 970773a971757c2b69b3cbaad1a53108
BLAKE2b-256 94ded408cac0834b481b2cd72f7c502a968f18c23053e6c77fd4fcfe14a92277

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page