Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/volrath/django-captcha-admin
Simple way to add a ReCaptcha field to your admin login page.
https://github.com/volrath/django-captcha-admin
Last synced: 3 months ago
JSON representation
Simple way to add a ReCaptcha field to your admin login page.
- Host: GitHub
- URL: https://github.com/volrath/django-captcha-admin
- Owner: volrath
- License: mit
- Created: 2014-06-05T15:44:37.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-08-19T22:35:51.000Z (over 2 years ago)
- Last Synced: 2024-09-16T16:51:32.571Z (4 months ago)
- Language: Python
- Homepage:
- Size: 15.6 KB
- Stars: 21
- Watchers: 3
- Forks: 10
- Open Issues: 5
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
Not longer supported. I won't be addressing issues, only PRs, BUT I also won't be updating the PYPI package, so safest bet would be to go with a different package.
======================
Django Captcha Admin
======================Simple way to add a ReCaptcha_ field to your admin login page.
4 simple steps
==============1. Install ``django-captcha-admin`` from pypi::
$> pip install django-captcha-admin
2. Add ``captcha_admin`` and ``captcha`` to your ``INSTALLED_APPS``::
INSTALLED_APPS = (
...
'captcha_admin',
'captcha',
)3. Add your captcha keys to your settings, the way django-recaptcha_
indicates::RECAPTCHA_PUBLIC_KEY = 'your-public-key'
RECAPTCHA_PRIVATE_KEY = 'your-private-key'
# If I'm not a Robot is required add:
NOCAPTCHA = True4. Edit your code so instead of importing ``admin`` from
``django.contrib``, you import it from ``captcha_admin``::from captcha_admin import admin
# This should stay the same
admin.autodiscover()urlpatterns = patterns(
...
url(r'^admin/', include(admin.site.urls)), # and this...
...
)That's it!
.. _ReCaptcha: https://www.google.com/recaptcha/
.. _django-recaptcha: https://github.com/praekelt/django-recaptcha