Skip to main content

entirius-django-contact-forms

A Django module for contact forms in Entirius, the open-source modular ecommerce platform. It accepts form submissions with attachments per sales channel, sends notification emails, takes calendar bookings, and turns submissions into leads that can be reported to Google Ads as offline conversions.

PyPI Python License: MPL-2.0

What it does

  • Accepts form submissions with file attachments, scoped per sales channel and typed from a per-channel catalog.
  • Sends a notification to the shop and an optional copy to the submitter, configured per form type.
  • Offers a booking calendar with free slots, backed by Google Calendar or a local-only backend.
  • Creates leads from submissions and bookings and tracks them through a status pipeline.
  • Uploads lead conversions to Google Ads.
  • Exposes an admin API for the CMS and a key-protected, throttled public API for the storefront.

Installation

uv add entirius-django-contact-forms
pip install entirius-django-contact-forms
INSTALLED_APPS = [
    ...
    "django_regional",
    "django_utils",
    "django_contact_forms",
]

PRIVATE_DIR = "/private"  # required: root of the private file storage (attachments)

# urls.py
urlpatterns = [
    path("", include("django_contact_forms.urls")),
]

PRIVATE_DIR is the only required setting. Reference with defaults: https://github.com/entirius/entirius-django-contact-forms/blob/develop/docs/configuration.md

Extras: bookings (Google Calendar backend for bookings), google-ads (conversion uploads), email (branded notification emails through entirius-django-email).

uv add "entirius-django-contact-forms[bookings,google-ads,email]"

The public API takes a key in the X-API-KEY header. Where django_access is installed the key is an access token with the scope contact_forms.submit (bookings: contact_forms.booking):

python manage.py access_token create --application storefront --create-application --scope contact_forms.submit --channel default

Without django_access, python manage.py forms-generate-api-key creates the key.

Quick start

from django_contact_forms.services.contact_form_service import create_submission, get_channel

channel = get_channel(idx="default")
form = create_submission(email="customer@example.com", channel=channel, body={"message": "Hello"})

Requirements

  • Python 3.11 or newer, Django 4.0 or newer.
  • PostgreSQL, and Celery for email dispatch and conversion uploads.
  • Entirius packages pulled in: entirius-django-regional, entirius-django-utils, entirius-py-idx-normalizator, entirius-py-process-logger.
  • Optional, through the extras: entirius-py-google-calendar-sdk, entirius-py-google-ads-sdk, entirius-django-email.

Documentation

Part of Entirius

This module runs inside the Entirius backend service (Volkanos) and serves the forms of the storefront.

Development

make install     # sync dependencies (uv)
make check       # lint + format check (ruff)
make test        # test suite (pytest, needs PostgreSQL via DATABASE_URL)

Development and agent instructions: https://github.com/entirius/entirius-django-contact-forms/blob/develop/AGENTS.md

License

Mozilla Public License 2.0 (MPL-2.0) — see https://github.com/entirius/entirius-django-contact-forms/blob/develop/LICENSE.

Metadata

Release files for entirius-django-contact-forms 4.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for entirius-django-contact-forms 4.2.1
File Size Uploaded Provenance Actions
entirius_django_contact_forms-4.2.1.tar.gz 240.4 kB Without provenance Details for entirius_django_contact_forms-4.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for entirius-django-contact-forms 4.2.1
File Interpreter ABI Platform Actions
entirius_django_contact_forms-4.2.1-py3-none-any.whl Python 3 none any Details for entirius_django_contact_forms-4.2.1-py3-none-any.whl

Total release size: 383.0 kB

Release files / entirius_django_contact_forms-4.2.1.tar.gz

Download URL entirius_django_contact_forms-4.2.1.tar.gz
Size 240.4 kB
Tags Source
SHA-256 checksum
How to use checksums
25a34d38e338299552b4f30791e1faeeff75440f01b49d666d584a3c2f16500b
BLAKE2b-256 checksum
How to use checksums
a193d75b5c807076bb4e463c2b5fc8a86277e4b6176eca91eec12de3cdb45875
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / entirius_django_contact_forms-4.2.1-py3-none-any.whl

Download URL entirius_django_contact_forms-4.2.1-py3-none-any.whl
Size 142.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
35b3d36452911779fa08543f321ad0dedc12720112e0b8a733344ce99db41acc
BLAKE2b-256 checksum
How to use checksums
9b91d4c28b74b2da1b3d09e23405aeea0cbb9e4da66b343d591684c287209abe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for entirius-django-contact-forms 4.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page