Simple model and form field to get verified email
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_verified_email_field-1.10.1.tar.gz.
File metadata
- Download URL: django_verified_email_field-1.10.1.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c3f4376aac4ba6df8704d1b2ab0cc0037acc279b6b0ddd1ed590c3e198e0760
|
|
| MD5 |
060cc52189a7b1d050ad080de6d38521
|
|
| BLAKE2b-256 |
9a1d30836b4514648dfaabe8d018df98fed6573b1252f1cfbed760531b0240ea
|
File details
Details for the file django_verified_email_field-1.10.1-py3-none-any.whl.
File metadata
- Download URL: django_verified_email_field-1.10.1-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38f16ac59a3f92039dad765af72a7c7aef8e63c43cae79fe400f9f3395182ee8
|
|
| MD5 |
50b252370ff7d181baf6aab192abb44c
|
|
| BLAKE2b-256 |
4026acba8b1a8635a709b0ee1fcac5943e760911ed80bf157a51febc8230a9ee
|