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.3.tar.gz (31.1 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.3-py3-none-any.whl (26.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_altcha-0.1.3.tar.gz
  • Upload date:
  • Size: 31.1 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.3.tar.gz
Algorithm Hash digest
SHA256 7a3700509d2015fc9577591dfc814fb9e1f84b2eafb47d633a00addf2bc5ba58
MD5 3d7606e0890cd1afbef1f2f2df8bf32c
BLAKE2b-256 e2408c07c4dc93edcfd0f881ac2d89b140aac8182bb05500de97a82c8952b351

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_altcha-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 26.1 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 69ed29f48f45f6355f67d5ef8051528a1306df16fe9351454d2f1448068505e4
MD5 4d045adef3336718708c059255452eeb
BLAKE2b-256 1ae0c9cb285252c3e334ede342a239081cf38daf96e42f7a6762a787cbe1f52d

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