{"id":17598016,"url":"https://github.com/cvan/django-potato-captcha","last_synced_at":"2026-02-24T00:42:30.988Z","repository":{"id":49709621,"uuid":"9423217","full_name":"cvan/django-potato-captcha","owner":"cvan","description":"A very simple, clever Django captcha application","archived":false,"fork":false,"pushed_at":"2021-06-10T17:46:17.000Z","size":13,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T03:38:57.335Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cvan.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-14T02:17:06.000Z","updated_at":"2020-06-05T22:06:29.000Z","dependencies_parsed_at":"2022-09-26T21:02:01.675Z","dependency_job_id":null,"html_url":"https://github.com/cvan/django-potato-captcha","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvan%2Fdjango-potato-captcha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvan%2Fdjango-potato-captcha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvan%2Fdjango-potato-captcha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvan%2Fdjango-potato-captcha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cvan","download_url":"https://codeload.github.com/cvan/django-potato-captcha/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247569130,"owners_count":20959758,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-22T09:44:14.978Z","updated_at":"2025-10-30T09:36:36.222Z","avatar_url":"https://github.com/cvan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=====================\ndjango-potato-captcha\n=====================\n\nA very simple, clever Django captcha application. This provides a wrapper\naround ``django.forms.Form`` and ``django.forms.ModelForm``, which creates\ntwo honeypot fields:\n\n\n1. ``tuber``: This field should always be blank.\n2. ``sprout``: This field's value should always be ``potato``, which should\n   get set by JavaScript in your template.\n\n\nUsage\n-----\n\nIn your ``forms.py``::\n\n    from django.forms import forms\n    from django_potato_captcha.forms import (PotatoCaptchaForm,\n                                             PotatoCaptchaModelForm)\n\n\n    class FrenchFriedForm(PotatoCaptchaForm):\n        text = forms.CharField()\n\n\n    class FrenchFriedModelForm(PotatoCaptchaForm):\n        text = forms.CharField()\n\n        class Meta:\n            model = Fry\n\n\nIn your template::\n\n        \u003cstyle type=\"text/css\"\u003e\n            .potato-captcha {\n                left: -9999px;\n                opacity: 0;\n                position: absolute;\n                visibility: hidden;\n            }\n        \u003c/style\u003e\n        \u003cform method=\"post\"\u003e\n            {% csrf_token %}\n            {{ form.tuber }}\n            {{ form.sprout }}\n            \u003cbutton type=\"submit\"\u003e{{ _('Submit') }}\u003c/button\u003e\n        \u003c/form\u003e\n        \u003cscript type=\"text/javascript\"\u003e\n            document.querySelector('input[name=sprout]').value = 'potato';\n        \u003c/script\u003e\n\n\nInstallation\n------------\n\nMake sure you have ``homebrew`` and ``virtualenv``/``virtualenvwrapper``\ninstalled::\n\n    curl -s https://raw.github.com/brainsik/virtualenv-burrito/master/virtualenv-burrito.sh | $SHELL\n    source ~/.profile\n\nThen install::\n\n    mkvirtualenv --no-site-packages potato\n    workon potato\n    python setup.py install\n\nOr install directly from PyPi::\n\n    pip install django_potato_captcha\n\n\nTesting\n-------\n\nSimply run this command::\n\n    nosetests\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcvan%2Fdjango-potato-captcha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcvan%2Fdjango-potato-captcha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcvan%2Fdjango-potato-captcha/lists"}