Skip to main content

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

https://img.shields.io/pypi/v/django-sitegate.svg https://img.shields.io/pypi/l/django-sitegate.svg https://img.shields.io/coveralls/idlesign/django-sitegate/master.svg

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

  • Yandex

  • Google

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

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.toolbox 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. Read the docs.

Documentation

http://django-sitegate.readthedocs.org/

Metadata

Release files for django-sitegate 1.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-sitegate 1.3.3
File Size Uploaded
django-sitegate-1.3.3.tar.gz 52.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-sitegate 1.3.3
File Interpreter ABI Platform
django_sitegate-1.3.3-py3-none-any.whl Python 3 none any Details

Total release size: 116.4 kB

Release files / django-sitegate-1.3.3.tar.gz

Download URL django-sitegate-1.3.3.tar.gz
Size 52.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4f1906465bec7fd718c543fd015339785a5d32d270ab66e44df70a199be33391
BLAKE2b-256 checksum
How to use checksums
82691f32be582e3881734fa6cf29217e270d8f680567f096cd13db3bda924a59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.8

Release files / django_sitegate-1.3.3-py3-none-any.whl

Download URL django_sitegate-1.3.3-py3-none-any.whl
Size 64.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
321db13b23659cf2b6bc69a1d6de2821648e2afa86fd6c5ec48c64729595e5f5
BLAKE2b-256 checksum
How to use checksums
1aa7f4e163ae8007351fb12133e9ec187756a42dfdf61f65d6729869712b00b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.8

Release history Release notifications | RSS feed

This release

1.3.3 This release

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.13.0

2 release files

0.12.2

2 release files

0.12.1

2 release files

0.11.0

2 release files

0.10.3

1 release file

0.10.2

1 release file

0.10.1

1 release file

0.10.0

1 release file

0.9.0

1 release file

0.8.0

1 release file

0.7.0

1 release file

0.6.1

1 release file

0.6.0

1 release file

0.5.0

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page