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 django_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 Distribution

django_recaptcha_admin_login-1.0.2.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file django_recaptcha_admin_login-1.0.2.tar.gz.

File metadata

File hashes

Hashes for django_recaptcha_admin_login-1.0.2.tar.gz
Algorithm Hash digest
SHA256 7efe7c0aeded47756144800aa1e588308a6865c0e3146a9dc8c54443cf4ddd5d
MD5 00b95bad24eed0c8397ff42ff54f2cdd
BLAKE2b-256 5b4d77bb028f6cbc642ac3873eac99c70ab9cf8ae397c116af3e7f15e7261f7d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Django_recaptcha_admin_login-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5f97f2d06ee05cd9b325b9586c8d4200d259f3ae071752387cfce60881ae5639
MD5 2f3fb0380c087f790354fd2e8217c88f
BLAKE2b-256 021d1841a4df04ad00923f5a30699c58f5d6615cb33a69985162520e58bde7d0

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