django-captcha-admin
django-captcha-admin copied to clipboard
Simple way to add a ReCaptcha field to your admin login page.
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
-
Install
django-captcha-adminfrom pypi::$> pip install django-captcha-admin
-
Add
captcha_adminandcaptchato yourINSTALLED_APPS::INSTALLED_APPS = ( ... 'captcha_admin', 'captcha', )
-
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 = True
-
Edit your code so instead of importing
adminfromdjango.contrib, you import it fromcaptcha_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