Registry / web-framework / django-honeypot

django-honeypot

JSON →
library1.3.0pypypiunverified

A Django application that provides honeypot field utilities for protecting forms against spam bots without requiring CAPTCHAs. Current version 1.3.0 supports Python >=3.12 and Django 4.x/5.x. Released irregularly.

pip install django-honeypot
INSTALL
IMPORT
SIG · DJANGO-HONEYPOT
D
django-honeypot
web-frameworkpythonv1.3.0
Install
3.3s avg
Import
Disk
65MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.2.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 66MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.3s · import 0.000s · 67MB
65MB installed
● package 65MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HoneypotField
from honeypot import HoneypotField
from honeypot.fields import HoneypotField

Minimal integration: add honeypot to INSTALLED_APPS, include HoneypotField in forms, and use verify_honeypot_value decorator on views.

# In settings.py INSTALLED_APPS = [ ... 'honeypot', ] # In a form from honeypot.fields import HoneypotField class MyForm(forms.Form): name = forms.CharField() email = forms.EmailField() hp = HoneypotField() # In a view with decorator from honeypot.decorators import verify_honeypot_value from django.shortcuts import render @verify_honeypot_value(field_name='hp') def my_view(request): # process form return render(request, 'form.html', {'form': MyForm()}) # In template, render honeypot field {{ form.hp }}
Debug
Known issues
gotchaHoneypotField must be rendered in the template exactly once per form. If omitted or rendered multiple times, the decorator may still pass silently unless the field name is missing.
fix
Ensure the template includes the honeypot field (e.g., {{ form.hp }}) and does not include it more than once.
affects: all
gotchaThe decorator verify_honeypot_value does not check for honeypot presence if the request method is not POST. It only validates on POST requests.
fix
Use the decorator only on views that handle POST requests or add method checking in the view logic.
affects: all
deprecatedThe 'honeypot_equals' decorator is deprecated in favor of 'verify_honeypot_value' with more flexible configuration.
fix
Replace honeypot_equals with verify_honeypot_value decorator.
affects: >=1.3.0
Upgrade
Version history
1.3.0latest on PyPI · released Jun 13, 2025
Audit
Dependencies
djangorequireddjango-honeypot requires Django
Agent activity
21 hits · last 30 days
node
20
OpenAI (training)
1
Resources
django-honeypot — pip install django-honeypot · libregistry