Skip to main content

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 = 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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_beta-0.2.0.tar.gz (6.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_beta-0.2.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file django_beta-0.2.0.tar.gz.

File metadata

  • Download URL: django_beta-0.2.0.tar.gz
  • Upload date:
  • Size: 6.1 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

Hashes for django_beta-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8374f35be456687c055f5b73c69968a2b29ebeeebfb971e29fb56c25594843cb
MD5 5d8601cb98007361ada4a7f5ec236e12
BLAKE2b-256 5d5609dbd64da94cfdb671667189f51b4ab55559fae625a80027a4daf46303f7

See more details on using hashes here.

File details

Details for the file django_beta-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: django_beta-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.9 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

Hashes for django_beta-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 46329cff9a97c4a56b2ebce19bb5975c8c0994329dd0e0e45924cfcac80c8a87
MD5 ae73528996c05ab0c40b16607cbf9f60
BLAKE2b-256 d4b5eb12d9afcf0506ac427c50334c894a956fb6acb6b2597c11d6874e178535

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