Metadata-Version: 1.1
Name: django-registrationwall
Version: 0.1.2
Summary: A Django mixin application to raise a registration or paywall
Home-page: https://github.com/richardcornish/django-registrationwall
Author: Richard Cornish
Author-email: rich@richardcornish.com
License: BSD License
Description: Django Registration Wall
        ************************
        
        |PyPI version|_ |Build status|_
        
        .. |PyPI version| image::
           https://badge.fury.io/py/django-registrationwall.svg
        .. _PyPI version: https://pypi.python.org/pypi/django-registrationwall
        
        .. |Build status| image::
           https://travis-ci.org/richardcornish/django-registrationwall.svg?branch=master
        .. _Build status: https://travis-ci.org/richardcornish/django-registrationwall
        
        .. image:: https://raw.githubusercontent.com/richardcornish/django-registrationwall/master/docs/_static/img/regwall-detail.png
        
        **Django Registration Wall** is a `Django <https://www.djangoproject.com/>`_ `mixin <https://docs.djangoproject.com/en/1.11/topics/class-based-views/mixins/>`_ `application <https://docs.djangoproject.com/en/1.11/intro/reusable-apps/>`_ that limits an `anonymous user <https://docs.djangoproject.com/en/1.11/ref/contrib/auth/#anonymoususer-object>`_'s access to content, after which the user is redirected to the `login URL <https://docs.djangoproject.com/en/1.11/ref/settings/#std:setting-LOGIN_URL>`_. The behavior is modeled after the common `paywall <https://en.wikipedia.org/wiki/Paywall>`_ scenario.
        
        Fake news articles credit goes to The Onion.
        
        * `Package distribution <https://pypi.python.org/pypi/django-registrationwall>`_
        * `Code repository <https://github.com/richardcornish/django-registrationwall>`_
        * `Documentation <https://django-registrationwall.readthedocs.io/>`_
        * `Tests <https://travis-ci.org/richardcornish/django-registrationwall>`_
        
        Install
        =======
        
        .. code-block:: bash
        
           $ pip install django-registrationwall
        
        Add to ``settings.py``.
        
        .. code-block:: python
        
           INSTALLED_APPS = [
               # ...
               'regwall',
           ]
        
        Add to one of your ``views.py``.
        
        .. code-block:: python
        
           from django.views.generic import DetailView
        
           from regwall.mixins import RaiseRegWallMixin
        
           from .models import Article
        
        
           class ArticleDetailView(RaiseRegWallMixin, DetailView):
               model = Article
        
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 1.9
Classifier: Framework :: Django :: 1.10
Classifier: Framework :: Django :: 1.11
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Utilities
