django-sitegate
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 flows for you.
Quick example
Add the sitegate application to INSTALLED_APPS in your settings file (usually ‘settings.py’).
Here follows the most straightforward way possible with django-sitegate to have both sign up & sign in functionality on your page.
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'})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.
Documentation
Metadata
Release files for django-sitegate 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django-sitegate-0.2.0.tar.gz | 20.9 kB | Without provenance | Details |
Release files / django-sitegate-0.2.0.tar.gz
| Download URL | django-sitegate-0.2.0.tar.gz |
|---|---|
| Size | 20.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3ee7024659bf7a20b1504842e4edf4218afd9bc04d06913b665b5cefe7e4aaea
|
|
BLAKE2b-256 checksum How to use checksums |
08a7dafeabfb9521258c0d7c9c8facf1fc7d233a2dae5dfb2854abbea923c655
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-sitegate 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.