Whatever Whenever Tech insights, coding tips, and AI stuff
Home New Post
Profile
Login Register

Select a category for your post

Click tags to select/deselect

Markdown supported: # Heading, **bold**, *italic*, `code`, - list items, etc.
Tip: Paste images directly from clipboard or drag-and-drop to upload!

django-admin-honeypot is a fake Django admin login screen to log and notify admins of attempted unauthorized access. This app was inspired by discussion in and around Paul McMillanÆs security talk at DjangoCon 2011.

  • Install django-admin-honeypot from PyPI:
shell
pip install django-admin-honeypot-updated-2021
  • Add admin_honeypot to INSTALLED_APPS in settings.py
python
INSTALLED_APPS = [
    ...
    'admin_honeypot',
    ...
]
  • Update your urls.py:
python
urlpatterns = [
    path('admin/', include('admin_honeypot.urls')),
    path('real_admin_page/', admin.site.urls),
    ...
]
  • Database Migration
shell
python manage.py makemigrations
python manage.py migrate
  • Test log in on yoursite.come/admin and then check 'ADMIN_HONEYPOT -> Login attempts' after log in with real admin page.
Cancel

Add New Category

Add New Tag

Home Search | RSS Sitemap

© 2026 whatever.asia