Socket
Socket
Sign inDemoInstall

django-captcha-admin

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

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.


Maintainers
1

Readme

====================== 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'

  4. 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 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc