Skip to main content

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.


  • Install django-hunger using pip or easy_install.
  • Add hunger to INSTALLED_APPS in
  • 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.


String length of the invitation_code
Enable hunger middleware
Never allow access to these views
Always let unregistered user see these view
Convenience settings - allow all views and a given module
If using flatpages app
Which views are used for signing up
The view which comes directly after a user has signed up
If user is not logged in and trying to access a hidden view - where should he/she be redirected
What is the url for the signup page
Directory containing email templates
Module where the email functions are
Function for sending out confirmation that user is on waiting list
Function for sending out the invitation code

Integration with django_templated_email

If django_templated_email - is installed, you can use customized *.email templates with an example setting such as:


And create the following templates:


Integration with django_social_auth

Modify SOCIAL_AUTH_PIPELINE in settings to replace social_auth.backends.pipeline.user.create_user with create_beta_user (using default pipeline):


BETA_ALWAYS_ALLOW_VIEWS must at bare minimum include the relevant social_auth views:



Hunger is partially based on: -

Project details

Download files

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

Files for django-hunger, version 1.0.7
Filename, size File type Python version Upload date Hashes
Filename, size django_hunger-1.0.7-py2-none-any.whl (126.5 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size django-hunger-1.0.7.tar.gz (10.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page