Simple model and form field to get verified email
Renders two input fields: e-mail and verification code. The verification code is send to the e-mail address using AJAX or during field’s clean, if there is no valid code for given e-mail, so it works even without javascript. For the javascript to work properly You need to have jQuery included in Your page.
All the texts and email templates may be configured in settings and overidden by field’s keyword arguments. (See settings.py and fieldsetup.py for more information)
Installation
pip install django-verified-email-field
Configuration
add 'verified_email_field' to Your settings.INSTALLED_APPS
include verified_email_field.urls in your project’s urls.py using namespace 'verified-email-field':
from django.conf.urls import url, include
urlpatterns = [
...
url(r'^verified-email-field/', include('verified_email_field.urls')),
...
]
Usage
Use VerifiedEmailField in Your forms:
from django import forms
from verified_email_field.forms import VerifiedEmailField
class RegistrationForm(forms.ModelForm):
email = VerifiedEmailField(label='email', fieldsetup_id='registration-form-email', required=True)
Or in Your models:
from django.db import models
from verified_email_field.models import VerifiedEmailField
class User(models.Model):
email = VerifiedEmailField('e-mail', fieldsetup_id='user-email')
Ensure that form.media.js ({{ form.media.js }}) is being rendered in your template and jQuery is included in Your page.
Metadata
Release files for django-verified-email-field 1.10.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_verified_email_field-1.10.1.tar.gz | 10.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_verified_email_field-1.10.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.6 kB
Release files / django_verified_email_field-1.10.1.tar.gz
| Download URL | django_verified_email_field-1.10.1.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3c3f4376aac4ba6df8704d1b2ab0cc0037acc279b6b0ddd1ed590c3e198e0760
|
|
BLAKE2b-256 checksum How to use checksums |
9a1d30836b4514648dfaabe8d018df98fed6573b1252f1cfbed760531b0240ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / django_verified_email_field-1.10.1-py3-none-any.whl
| Download URL | django_verified_email_field-1.10.1-py3-none-any.whl |
|---|---|
| Size | 14.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
38f16ac59a3f92039dad765af72a7c7aef8e63c43cae79fe400f9f3395182ee8
|
|
BLAKE2b-256 checksum How to use checksums |
4026acba8b1a8635a709b0ee1fcac5943e760911ed80bf157a51febc8230a9ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|