Skip to main content

A simple Django app to manage User Preferences.

Project description

OptIn is a simple Django app to manage User Preferences. For each Category, Users can select Yes or No.

You set the Categories through the Admin panel

Detailed documentation is needs writing.

Quick start

  1. Add “optin” to your INSTALLED_APPS setting like this:

  2. Include the polls URLconf in your project like this:

    path('optin/', include('optin.urls')),
  3. Run python migrate to create the polls models.

  4. Start the development server and visit to create a Category (you’ll need the Admin app enabled).

  5. Add <a href=”{% url ‘optin:user_opt_selection’ %}”>OptIns</a> to a template to provide a link. Please note, User must be logged in.

  6. Visit, Login and click link to set preferences.


OptIn uses AUTH_USER_MODEL as the default user model. It will default to the Django User model if AUTH_USER_MODEL is not set in

OPTIN_SETTINGS_UPDATE_MESSAGE_BOOLEAN: If True, on successful update of preferences the OPTIN_SETTINGS_UPDATE_MESSAGE is presented to User (via django messages). Default = True

OPTIN_SETTINGS_UPDATE_MESSAGE: Message displayed to User if OPTIN_SETTINGS_UPDATE_MESSAGE_BOOLEAN set to True. Default = ‘Preferences Updated’

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-optin, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size django-optin-1.0.0.tar.gz (5.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page