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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file django_hide_admin-1.0.0.tar.gz.

File metadata

  • Download URL: django_hide_admin-1.0.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.7 Linux/6.0.5-200.fc36.x86_64

File hashes

Hashes for django_hide_admin-1.0.0.tar.gz
Algorithm Hash digest
SHA256 fed2431d2cd23be31bac1b829f0c7177590f776ae05b1ec47bfea0963e06824f
MD5 5602f5c381f4af247521ce208fa039af
BLAKE2b-256 dedbc0f1513d0debb075313b0df343f7eaf3fcbf66a8745c36b95fa2801a1d06

See more details on using hashes here.

File details

Details for the file django_hide_admin-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: django_hide_admin-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.7 Linux/6.0.5-200.fc36.x86_64

File hashes

Hashes for django_hide_admin-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 01f78119029e18fc4f0164f7be4f79217ca6873e592785de69f9487bd94a7de3
MD5 8c1ac38b77ec529c419f5abe38ba41c4
BLAKE2b-256 d7e3ef323605718bf259aa275f66e0f5f3ea637aa25a8bed8fbfdf0b2fa8493c

See more details on using hashes here.

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