Skip to main content

Django field and widget for Altcha CAPTCHA.

Project description

Django Altcha

Django Altcha is a Django library that provides easy integration of Altcha CAPTCHA into your Django forms, enhancing user verification with configurable options.

By default, CAPTCHA validation operates in a fully self-hosted mode, eliminating the need for external services while ensuring privacy and control over the verification process.

Installation

  1. Install the package:

    pip install django-altcha
    
  2. Add to INSTALLED_APPS:

    Update your Django project's settings.py:

    INSTALLED_APPS = [
        # Other installed apps
        "django_altcha",
    ]
    

Usage

Adding the CAPTCHA Field to Your Form

To add the Altcha CAPTCHA field to a Django form, import AltchaField and add it to your form definition:

from django import forms
from django_altcha import AltchaField

class MyForm(forms.Form):
    captcha = AltchaField()

Configuration Options

You can pass configuration options to AltchaField that are supported by Altcha. These options are documented at Altcha's website integration guide.

Example with additional options:

class MyForm(forms.Form):
    captcha = AltchaField(
        floating=True,   # Enables floating behavior
        debug=True,      # Enables debug mode (for development)
        # Additional options supported by Altcha
    )

Contributing

We welcome contributions to improve this library. Feel free to submit issues or pull requests!

License

This project is licensed under the MIT License. See the LICENSE file for details.

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_altcha-0.1.2.tar.gz (30.8 kB view details)

Uploaded Source

Built Distribution

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

django_altcha-0.1.2-py3-none-any.whl (26.0 kB view details)

Uploaded Python 3

File details

Details for the file django_altcha-0.1.2.tar.gz.

File metadata

  • Download URL: django_altcha-0.1.2.tar.gz
  • Upload date:
  • Size: 30.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for django_altcha-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8c3bbbc3699ecddc3a9899153085a0f145b37e990be3799c63d20b9c2c0d65e3
MD5 6a0a9e7c8c7973be7d720ddb50e10306
BLAKE2b-256 49d7b1a919c4d54d5f128fe8d8b565b34ffd03b75afab7151e0793040656a8fd

See more details on using hashes here.

File details

Details for the file django_altcha-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: django_altcha-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 26.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for django_altcha-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fb19b93de90930bbff308205aeddc0941b36d1622cb4e91f589e8ff27a8f708c
MD5 ffa24bdd7664d6a67ec59db10085e0a3
BLAKE2b-256 73a964a0bc421b77ad85f30c0035b55421d6a1a86822a3c951bb02a689ad1054

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