{ "info": { "author": "Igor `idle sign` Starikov", "author_email": "idlesign@yandex.ru", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "django-sitegate\n===============\nhttp://github.com/idlesign/django-sitegate\n\n.. image:: https://idlesign.github.io/lbc/py2-lbc.svg\n :target: https://idlesign.github.io/lbc/\n :alt: LBC Python 2\n\n----\n\n.. image:: https://img.shields.io/pypi/v/django-sitegate.svg\n :target: https://pypi.python.org/pypi/django-sitegate\n\n.. image:: https://img.shields.io/pypi/l/django-sitegate.svg\n :target: https://pypi.python.org/pypi/django-sitegate\n\n.. image:: https://img.shields.io/coveralls/idlesign/django-sitegate/master.svg\n :target: https://coveralls.io/r/idlesign/django-sitegate\n\n.. image:: https://img.shields.io/travis/idlesign/django-sitegate/master.svg\n :target: https://travis-ci.org/idlesign/django-sitegate\n\n.. image:: https://landscape.io/github/idlesign/django-sitegate/master/landscape.svg?style=flat\n :target: https://landscape.io/github/idlesign/django-sitegate/master\n\n\nWhat's that\n-----------\n\n*django-sitegate is a reusable application for Django to ease sign up & sign in processes.*\n\nThis application will handle most common user registration and log in flows for you.\n\n**Sign in**\n\n* username/e-mail + password\n* username + password\n\n**Sign up**\n\n* username/e-mail + password\n* invitation code + username/e-mail + password\n* username + password\n* username + e-mail + password\n* username + password + password confirmation\n* username + e-mail + password + password confirmation\n\n\nQuick example\n-------------\n\n* Add the **sitegate** application to INSTALLED_APPS in your settings file (usually 'settings.py').\n* Make sure `TEMPLATE_CONTEXT_PROCESSORS` in your settings file has `django.core.context_processors.request`.\n\nHere follows the most straightforward way possible with ``django-sitegate`` to have both sign up & sign in\nfunctionality on your page.\n\n\n1. Use ``sitegate_view`` decorator to mark your view as the one handling both signups and signins:\n\n .. code-block:: python\n\n from django.shortcuts import render\n\n from sitegate.decorators import sitegate_view\n\n @sitegate_view # This also prevents logged in users from accessing our sign in/sign up page.\n def entrance(request):\n return render(request, 'entrance.html', {'title': 'Sign in & Sign up'})\n\n\n2. Then in your template load ``sitegate`` tag library and put ``sitegate_signup_form`` & ``sitegate_signin_form`` tags\n in place where you want a registration and sign in forms to be.\n\n .. code-block:: html\n\n {% extends \"_base.html\" %}\n {% load sitegate %}\n\n {% block page_contents %}\n