django-email-registration
The eleventy-eleventh email registration app for Django.
But this one does not feed your cat.
Usage
This example assumes you are using a recent version of Django, jQuery and Twitter Bootstrap.
Install django-email-registration using pip.
Copy this code somewhere on your login or registration page:
<h2>{% trans "Send an activation link" %}</h2> <form method="post" action="{% url "email_registration_form" %}" class="well" id="registration"> {% csrf_token %} <div class="controls"> <input id="id_email" type="text" name="email" maxlength="30" placeholder="{% trans "Email address" %}"> </div> <button type="submit" class="btn btn-primary"> {% trans "Register" %}</button> </form> <script> function init_registration($) { $('#registration').on('submit', function() { var $form = $(this); $.post(this.action, $form.serialize(), function(data) { $('#registration').replaceWith(data); init_registration($); }); return false; }); } $(init_registration); </script>(Alternatively, include the template snippet registration/email_registration_include.html somewhere.)
Add email_registration to INSTALLED_APPS and include email_registration.urls somewhere in your URLconf.
Make sure that Django is able to send emails.
Presto.
Metadata
Release files for django-email-registration 0.5.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 | Actions |
|---|---|---|---|---|
| django-email-registration-0.5.0.tar.gz | 10.0 kB | Without provenance | Details for django-email-registration-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_email_registration-0.5.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for django_email_registration-0.5.0-py2.py3-none-any.whl |
Total release size: 23.7 kB
Release files / django-email-registration-0.5.0.tar.gz
| Download URL | django-email-registration-0.5.0.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8fd88d114b04d6bba2f7f716f8fbeb98a5361dcef48c34e1ab85b4833ac64f78
|
|
BLAKE2b-256 checksum How to use checksums |
b49a9bbf21cfd25bf5f6cd8e33fdcb20b33ef9330b2a16c75dfbcfc2d5b43e19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
|
Release files / django_email_registration-0.5.0-py2.py3-none-any.whl
| Download URL | django_email_registration-0.5.0-py2.py3-none-any.whl |
|---|---|
| Size | 13.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
48661db3576711d9631fb7a40c07bc09ba000b17824edac5b66328d02d312127
|
|
BLAKE2b-256 checksum How to use checksums |
f5d5cc580961f7a9fa6fc76c2950127eb532a896ce3f134455672a462611d178
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
|
Security for django-email-registration 0.5.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.