Provides a recaptcha field in django's default admin login page.
Project description
Simple way to add a ReCaptcha field to your admin login page.
4 simple steps
Install django-captcha-admin from pypi:
$> pip install django-captcha-admin
Add captcha_admin and captcha to your INSTALLED_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'
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!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-captcha-admin-0.2.tar.gz
.
File metadata
- Download URL: django-captcha-admin-0.2.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66a615db50e392fe7bc72f6727620b500a08a76d69f6c8c421d985ef35b0b263 |
|
MD5 | 90e4c8d793c83f4096ab5cf71210759e |
|
BLAKE2b-256 | 3490ab921578e0b9d69f5624938d4a9841818bffe4dc9d7f868a212ac491fb82 |