Skip to main content

Django package to add Google reCAPTCHA to the admin login page

Project description

Features

  • Adds Google reCAPTCHA to the Django admin login page.

  • Easy to configure and customize.

  • Compatible with Django 4.2 and later.

Quick Start

  1. Install the package:

    pip install django5-recaptcha-admin-login
  2. Add django5_recaptcha_admin_login.recaptcha and django5_recaptcha_admin_login.recaptcha.captcha to your INSTALLED_APPS in your settings.py:

    INSTALLED_APPS = [
        ...
        "django5_recaptcha_admin_login.recaptcha",
        "django5_recaptcha_admin_login.recaptcha.captcha",
    ]
  3. Add the Google reCAPTCHA keys to your settings:

    RECAPTCHA_PUBLIC_KEY = "your-public-key"
    RECAPTCHA_PRIVATE_KEY = "your-private-key"
  4. Update your base URLs to use the custom admin:

    from django5_recaptcha_admin_login.recaptcha import admin
    
    urlpatterns = [
          path('admin/', admin.site.urls),
    ]

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Django_recaptcha_admin_login-1.0.1-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file Django_recaptcha_admin_login-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for Django_recaptcha_admin_login-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7b0bac8ca65ea53fd0ee26aaada98621dc04811fb20bb23a57f7c7dd20c398eb
MD5 b1e442e36793c2c67524295e8b38a02f
BLAKE2b-256 325ba92652f05967002e428f676a35fe7d9f1baa716ef60f93fe68fdf5e99e81

See more details on using hashes here.

Supported by

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