django-beta
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 = Truewill use a form and require the user to enter their first name and email address.BETA_CAPTURE_BOTH = Truewill 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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_beta-0.2.1.tar.gz.
File metadata
- Download URL: django_beta-0.2.1.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9102358bd11a5f0481a418b51a0e4186f393a0ceefc59aba66e7ae4b29c75bb4
|
|
| MD5 |
f498044f9acb39cfc36b4e3bcb370f2e
|
|
| BLAKE2b-256 |
217080f71537bde695471455f7ef794c4602f2402455910b05df1f99f8dcce61
|
File details
Details for the file django_beta-0.2.1-py3-none-any.whl.
File metadata
- Download URL: django_beta-0.2.1-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a081059378e048263a2484fe61e1117941bbe421af712a45bbf91f0b957a8528
|
|
| MD5 |
79b7cb55385d17fcd39ae95c7d30b5c1
|
|
| BLAKE2b-256 |
26198ebb6a87137a83cbb1aa48287bd55700b0965d6072a49194e1e5aa17576b
|