You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

django-captcha-admin

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-captcha-admin

Provides a recaptcha field in django's default admin login page.

0.2
pipPyPI
Maintainers
1

====================== Django Captcha Admin

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!

.. _ReCaptcha: https://www.google.com/recaptcha/ .. _django-recaptcha: https://github.com/praekelt/django-recaptcha

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts