Skip to main content

So simple you'll burst into tears right away.

Project description

The eleventy-eleventh email registration app for Django.

But this one does not feed your cat.


This example assumes you are using a recent version of Django, jQuery and Twitter Bootstrap.

  1. Install django-email-registration using pip.

  2. 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" %}">
      <button type="submit" class="btn btn-primary">
        {% trans "Register" %}</button>
    function init_registration($) {
      $('#registration').on('submit', function() {
        var $form = $(this);
        $.post(this.action, $form.serialize(), function(data) {
        return false;

    (Alternatively, include the template snippet registration/email_registration_include.html somewhere.)

  3. Add email_registration to INSTALLED_APPS and include email_registration.urls somewhere in your URLconf.

  4. Make sure that Django is able to send emails.

  5. Presto.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django_email_registration-0.4.0-py2.py3-none-any.whl (14.5 kB) Copy SHA256 hash SHA256 Wheel py2.py3
django-email-registration-0.4.0.tar.gz (9.2 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page