django-sitegate 0.9.0

Reusable application for Django to ease sign up & sign in processes

http://github.com/idlesign/django-sitegate

What's that

django-sitegate is a reusable application for Django to ease sign up & sign in processes.

This application will handle most common user registration and log in flows for you.

Sign in

  • username/e-mail + password
  • username + password

Sign up

  • username/e-mail + password
  • invitation code + username/e-mail + password
  • username + password
  • username + e-mail + password
  • username + password + password confirmation
  • username + e-mail + password + password confirmation

Quick example

  • Add the sitegate application to INSTALLED_APPS in your settings file (usually 'settings.py').
  • Make sure TEMPLATE_CONTEXT_PROCESSORS in your settings file has django.core.context_processors.request.

Here follows the most straightforward way possible with django-sitegate to have both sign up & sign in functionality on your page.

  1. Use sitegate_view decorator to mark your view as the one handling both signups and signins:

    from django.shortcuts import render
    
    from sitegate.decorators import sitegate_view
    
    @sitegate_view  # This also prevents logged in users from accessing our sign in/sign up page.
    def entrance(request):
        return render(request, 'entrance.html', {'title': 'Sign in & Sign up'})
    
  2. Then in your template load sitegate tag library and put sitegate_signup_form & sitegate_signin_form tags in place where you want a registration and sign in forms to be.

    {% extends "_base.html" %}
    {% load sitegate %}
    
    {% block page_contents %}
        <div class="my_signin_block">
            {% sitegate_signin_form %}
        </div>
        <div class="my_signup_block">
            {% sitegate_signup_form %}
        </div>
    {% endblock %}
    

You're done. Now your site visitors have an e-mail + password form to register and username/e-mail + password form to log in.

And mind that we've barely made a scratch of sitegate.

Author

Igor 'idle sign' Starikov

Pip

django-sitegate==0.9.0

Classifiers

  • Programming Language :: Python :: 3.4
  • Programming Language :: Python :: 3.3
  • Programming Language :: Python :: 3
  • Programming Language :: Python :: 2.7
  • Programming Language :: Python :: 2
  • Programming Language :: Python
  • Operating System :: OS Independent
  • License :: OSI Approved :: BSD License
  • Intended Audience :: Developers
  • Framework :: Django
  • Environment :: Web Environment
  • Development Status :: 4 - Beta
File Type Python Version Uploaded On Downloads
django-sitegate-0.9.0.tar.gz Source Sept. 7, 2014 453
Version Release Date
0.9.0 Sept. 7, 2014
0.8.0 Aug. 26, 2014
0.7.0 July 31, 2014
0.6.1 Sept. 25, 2013
0.6.0 Sept. 10, 2013
0.5.0 Aug. 8, 2013
0.4.0 June 11, 2013
0.3.0 May 22, 2013
0.2.0 May 19, 2013
0.1.0 May 16, 2013
Date Package Version Action
Nov. 4, 2014, 1:49 p.m. django-sitegate 0.3.0 Release Created
Nov. 4, 2014, 1:49 p.m. django-sitegate 0.5.0 Release Created
Nov. 4, 2014, 1:49 p.m. django-sitegate 0.4.0 Release Created
Nov. 4, 2014, 1:49 p.m. django-sitegate 0.1.0 Release Created
Nov. 4, 2014, 1:49 p.m. django-sitegate 0.2.0 Release Created
Nov. 4, 2014, 1:49 p.m. django-sitegate 0.7.0 Release Created
Nov. 4, 2014, 1:49 p.m. django-sitegate 0.8.0 Release Created
Nov. 4, 2014, 1:49 p.m. django-sitegate 0.6.0 Release Created
Nov. 4, 2014, 1:49 p.m. django-sitegate 0.6.1 Release Created
Nov. 4, 2014, 1:49 p.m. django-sitegate 0.9.0 Release Created
Nov. 4, 2014, 1:49 p.m. django-sitegate Package Created