Skip to main content

Hides Django admin from unauthorized users

Project description

django-hide-admin

Hides Django admin from users without staff level access. Anonymous users or users without staff level access will see 404 Not found error if they try to open the Django admin login page or any other admin pages.

Since the Django admin login page is not available, your project should have a login page for users and staff. Once staff are logged in, they can open /admin/ (by default) to access admin interface.

Installation

pip install django-hide-admin

Usage

Replace django.contrib.admin with hide_admin.apps.HideAdminConfig in INSTALLED_APPS.

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_hide_admin-1.0.0.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

django_hide_admin-1.0.0-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

Supported by

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