django电子邮件注册 - 没有名为_ssl的模块

时间:2016-03-03 07:47:16

标签: python django

我正在尝试实现Django注册重置功能,我正在使用以下作为我从github下载的 password-reset-email.html

{% load i18n %}{% load url from future %}{% autoescape off %} {% blocktrans %}You're receiving this e-mail because you requested a password reset for your user account at {{ site_name }}.{% endblocktrans %}

{% trans "Please go to the following page and choose a new password:" %} {% block reset_link %} {{ protocol }}://{{ domain }}{% url 'django.contrib.auth.views.password_reset_confirm' uidb36=uid token=token %} {% endblock %}

{% trans "Thanks for using our site!" %}

{% blocktrans %}The {{ site_name }} team{% endblocktrans %}

{% endautoescape %}

我收到No module named _ssl错误,我不知道原因。

1 个答案:

答案 0 :(得分:0)

我已经将我的python版本从2.7.11降级到2.7.9,这似乎已经解决了这个问题,但是,它已经提出了一个新问题!。