Hunger
Django app to manage a private beta phase for a website.
This app provides users with the change to sign up for a private beta - by providing their email address.
The administrators of the website can manually invite people to join the beta from the Django admin panel.
The signup view of the app is only accessible by providing the correct invitation code in the url.
Installation
Install django-hunger using pip or easy_install.
Add hunger to INSTALLED_APPS in settings.py.
Add hunger.middleware.BetaMiddleware to MIDDLEWARE_CLASSES.
Create templates beta/request_invite.html, beta/confirmation.html, and beta/used.html. The request_invite.html template receives a Context instance with a Django form for the email signup form. The confirmation.html and used.html templates are flatpages for confirming signup and used invites.
Settings
- BETA_INVITE_CODE_LENGTH
String length of the invitation_code
- BETA_ENABLE_BETA
Enable hunger middleware
- BETA_NEVER_ALLOW_VIEWS
Never allow access to these views
- BETA_ALWAYS_ALLOW_VIEWS
Always let unregistered user see these view
- BETA_ALWAYS_ALLOW_MODULES
Convenience settings - allow all views and a given module
- BETA_ALLOW_FLATPAGES
If using flatpages app
- BETA_SIGNUP_VIEWS
Which views are used for signing up
- BETA_SIGNUP_CONFIRMATION_VIEW
The view which comes directly after a user has signed up
- BETA_REDIRECT_URL
If user is not logged in and trying to access a hidden view - where should he/she be redirected
- BETA_SIGNUP_URL
What is the url for the signup page
- BETA_EMAIL_TEMPLATES_DIR
Directory containing email templates
- BETA_EMAIL_MODULE
Module where the email functions are
- BETA_EMAIL_CONFIRM_FUNCTION
Function for sending out confirmation that user is on waiting list
- BETA_EMAIL_INVITE_FUNCTION
Function for sending out the invitation code
Integration with django_templated_email
If django_templated_email - https://github.com/bradwhittington/django-templated-email is installed, you can use customized *.email templates with an example setting such as:
BETA_EMAIL_TEMPLATES_DIR = 'beta'
And create the following templates:
<project_dir>/templates/beta/beta_confirm.email <project_dir>/templates/beta/beta_invite.email
Credit
Hunger is partially based on: - https://github.com/pragmaticbadger/django-privatebeta
Metadata
Release files for django-hunger 1.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-hunger-1.0.7.tar.gz | 10.5 kB | Without provenance | Details for django-hunger-1.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_hunger-1.0.7-py2-none-any.whl | Python 2 | none | any | Details for django_hunger-1.0.7-py2-none-any.whl |
Total release size: 137.0 kB
Release files / django-hunger-1.0.7.tar.gz
| Download URL | django-hunger-1.0.7.tar.gz |
|---|---|
| Size | 10.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fed04f3215ae84289e121fd3dd285a28aa6e2202fbd706d5ead5ef0374465a63
|
|
BLAKE2b-256 checksum How to use checksums |
202b965df1bb05f40b8f720c1126b7da0092108f8eff8ae5b509bb1922dae740
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_hunger-1.0.7-py2-none-any.whl
| Download URL | django_hunger-1.0.7-py2-none-any.whl |
|---|---|
| Size | 126.5 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
984d8617a2f1aa60cb4f56648b856233a8fbfe8e8a1d5a9682268ce37441d57a
|
|
BLAKE2b-256 checksum How to use checksums |
014b13b0638896053c4e09ef696f15253ad2b206697f9bb536d100dfb9b6e3f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-hunger 1.0.7
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.