Skip to main content

easy added captcha to login page of django grappelli admin

Project description

django-grappelli-captcha-admin

Easy added captcha to Django administration login page. inherit from a-roomana/django-multi-captcha-admin


Dependency

To use this module you need to install django and one of the captcha engines, which you can install it with easy_install or pip.


Installation

Install:

pip install django-grappelli-captcha-admin

if you are using python 2 then install version 1.0.0 (pip install django-multi-captcha-admin==1.0.0)

Add 'multi_captcha_admin' to your INSTALLED_APPS setting before 'django.contrib.admin' app.

INSTALLED_APPS = [
	...
	'captcha_admin',
	'django.contrib.admin',
	...
]

CAPTCHA_CHALLENGE_FUNCT = 'captcha.helpers.math_challenge'
CAPTCHA_TIMEOUT = 1
CAPTCHA_GET_FROM_POOL_TIMEOUT = 0
CAPTCHA_BACKGROUND_COLOR = '#bbaaaa'

Engines

We support three famous engines to render CAPTCHA. You need to install one of them, then add it to your django project according to their documents.

For more information, please go to the engine site.

Then add the following to your settings.py with the name of the installed engine:

MULTI_CAPTCHA_ADMIN = {
    'engine': 'simple-captcha',
}

Results

simple captcha

captcha of recaptcha

recaptcha2

captcha of recaptcha2

recaptcha

captcha of recaptcha

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-grappelli-captcha-admin-1.0.0.tar.gz (5.5 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page