Skip to main content

django-beta

CI PyPI Python versions Django versions

django-beta is a simple application to help you capture pre-beta interest with your sites.

By default django-beta only captures a user's email address, however you can alternately set one of these two configuration options:

  • BETA_CAPTURE_FIRST = True will use a form and require the user to enter their first name and email address.
  • BETA_CAPTURE_BOTH = True will use a form and require the user to enter their first name, last name, and email address.

Installation

Add beta to your INSTALLED_APPS and run migrations.

Add the following to your urls.py:

from django.urls import include, path

urlpatterns = [
    path("beta/", include("beta.urls")),
]

Using the example templates provided in the code, create your customized beta signup templates.

Managers

The BetaSignup model has the following manager methods to help out:

BetaSignup.objects.contacted()
BetaSignup.objects.not_contacted()
BetaSignup.objects.registered()
BetaSignup.objects.not_registered()

Side Effects

django-beta listens for a signal on User creation and marks the corresponding BetaSignup entry as registered.

Development

This project uses nox and just for testing and linting across a matrix of Python and Django versions.

just lint          # run pre-commit / ruff via prek
just test          # run the full nox test matrix
just test-latest   # run against the latest Python and Django

TODO

  • Admin views to show beta registrations over time
  • Management commands to simplify emailing the interested users

Release files for django-beta 0.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 django-beta 0.2.1
File Size Uploaded
django_beta-0.2.1.tar.gz 6.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-beta 0.2.1
File Interpreter ABI Platform
django_beta-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 14.3 kB

Release files / django_beta-0.2.1.tar.gz

Download URL django_beta-0.2.1.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9102358bd11a5f0481a418b51a0e4186f393a0ceefc59aba66e7ae4b29c75bb4
BLAKE2b-256 checksum
How to use checksums
217080f71537bde695471455f7ef794c4602f2402455910b05df1f99f8dcce61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / django_beta-0.2.1-py3-none-any.whl

Download URL django_beta-0.2.1-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a081059378e048263a2484fe61e1117941bbe421af712a45bbf91f0b957a8528
BLAKE2b-256 checksum
How to use checksums
26198ebb6a87137a83cbb1aa48287bd55700b0965d6072a49194e1e5aa17576b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.0

1 release file

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