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.0.tar.gz (8.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.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for django_altcha-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c0714a9e85d5e42a399d55ad71b50d77da61668ee65185f3eed4f874ef614120
MD5 56c9f9fb43aa2b3f74a9d23b02ddb30f
BLAKE2b-256 c184d40da1ec8e5ad78a2a5b9cdf85e673bfd3c361e79d977d2639603de15c6a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for django_altcha-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 72b7242b0b53e8431809f42de82f94056b369977ad0b00e8deab86e0fa0258a3
MD5 74d80288d3acf36a5cd100a3fb7eb8d9
BLAKE2b-256 1d140cad24975786d5fe3158ad53eb41bedc41a2795d16b6d6c0aa163060ea8a

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