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.1.2

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.1.2
File Size Uploaded Provenance Actions
entirius_django_contact_forms-4.1.2.tar.gz 234.5 kB Without provenance Details for entirius_django_contact_forms-4.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 373.6 kB

Release files / entirius_django_contact_forms-4.1.2.tar.gz

Download URL entirius_django_contact_forms-4.1.2.tar.gz
Size 234.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3f0042cc7d376d2706a60e35bd98b2f0ecc2acfac847ca4d574d2764667c2cc0
BLAKE2b-256 checksum
How to use checksums
a39e00d5d0b3ac6de1badc5620d6a93a728b023b38bf7b349e4e8d0bfbc3d30b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.1.2-py3-none-any.whl

Download URL entirius_django_contact_forms-4.1.2-py3-none-any.whl
Size 139.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d2d67883cd73f91c4079cbc1a1c39c60519d18138697e24e35e9fac5d7b10878
BLAKE2b-256 checksum
How to use checksums
805a4f7e21bff51a89d33f25f4d3c9973115541513e9e5f489240d0b626fb701
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","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.1.2

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