Search code examples
pythondjangodjango-registration

not receive activation email use django-registration-redux


i use djanga 1.7 and python 2.7, i want to build registration use django-registration-redux but i not receive activation email.

this is part of my setting.py

EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
ACCOUNT_ACTIVATION_DAYS = 3
LOGIN_REDIRECT_URL = '/'

this is url.py

url(r'^accounts/', include('registration.backends.default.urls')),

and this is registration_form.py

    {% extends "base_2.html" %}
{% load bootstrap3 %}

{% block title %}Registration{% endblock %}

{% block content %}
<div class="container">
  <div class="row">
    <div class="col-sm-offset-2 col-sm-10">
      <h1>Sign up</h1>
      <p>Already registered?  
        <a href="{% url 'django.contrib.auth.views.login' %}">Sign in here.</a></p>
    </div>
  </div>

  <form action="{% url 'registration_register' %}" 
        method="post" role="form" class="form-horizontal">
    {% csrf_token %}
    {% bootstrap_form form layout='horizontal' %}

    {% buttons %}
    <div class="col-sm-offset-2 col-sm-10">
      <button type="submit" class="btn btn-primary">
        {% bootstrap_icon "star" %} Sign Me Up!
      </button>
    </div>
    {% endbuttons %}
  </form>

</div>
{% endblock %}

registration success but i am not receive activation email.

can you tell solve this problem?


Solution

  • Your EMAIL_BACKEND is incorrectly set, if you want to receive an actual email in your inbox. The django.core.mail.backends.console.EmailBackend will only log the email to your console.

    You need to setup a new email backend such as an SMTP backend.