Skip to main content

A Django mixin application to raise a registration or paywall

Project description

PyPI version Build status

https://raw.githubusercontent.com/richardcornish/django-registrationwall/master/docs/_static/img/regwall-detail.png

Django Registration Wall is a Django mixin application that limits an anonymous user’s access to content, after which the user is redirected to the login URL. The behavior is modeled after the common paywall scenario.

Fake news articles credit goes to The Onion.

Install

$ pip install django-registrationwall

Add to settings.py.

INSTALLED_APPS = [
    # ...
    'regwall',
]

Add to one of your views.py.

from django.views.generic import DetailView

from regwall.mixins import RaiseRegWallMixin

from .models import Article


class ArticleDetailView(RaiseRegWallMixin, DetailView):
    model = Article

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django_registrationwall-0.1.5-py2.py3-none-any.whl (15.5 kB) Copy SHA256 hash SHA256 Wheel 3.5 Jul 17, 2017
django-registrationwall-0.1.5.tar.gz (3.4 MB) Copy SHA256 hash SHA256 Source None Jul 17, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page