A Django app to manage a private beta phase.
Project description
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
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file django-hunger-1.0.8.tar.gz
.
File metadata
- Download URL: django-hunger-1.0.8.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6addc61353d8f704453f9368d80a75e2cfe87093ad39f495aeb3484a49392f1 |
|
MD5 | 7b2ce7a6862f61986d789aac6e1b3591 |
|
BLAKE2b-256 | 2135e0e784439c5c5a50d6f62bd1525e289eace9cce7436d82c3b098cadcc472 |
File details
Details for the file django_hunger-1.0.8-py2-none-any.whl
.
File metadata
- Download URL: django_hunger-1.0.8-py2-none-any.whl
- Upload date:
- Size: 126.3 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03c3c372c80207f90056a3b0b8e39325a11d38b278c8a86dcca6ff2e50a05076 |
|
MD5 | e3e826fadc82a565fa63d924e469cfdd |
|
BLAKE2b-256 | e6105826af4c4aa0a287d081bcdb41645ee478bbb461629c523e16ab2129790e |