标签云

微信群

扫码加入我们

WeChat QR Code

Hi am absolutely new to django,Now I am tring for builtin reset password view.. I follow the link linkBut I got the error when I click on reset password button at /password_reset/ : error at /accounts/password_reset/ [Errno 10061] No connection could be made because the target machine actively refused it.Exception Location: C:\Python27\lib\socket.py in create_connection, line 571'urls.py'(r'^accounts/password_reset$','django.contrib.auth.views.password_reset','template_name':'user/password_reset_form.html','email_template_name':'user/password_reset_email.html'}),(r'^accounts/password/reset/confirm/(?P[0-9A-Za-z]{1,13})-(?P[0-9Aa-z]{1,13}-[0-9A-Za-z]{1,20})/$', 'django.contrib.auth.views.password_reset_confirm', {'template_name' : 'user/password_reset.html','post_reset_redirect': '/logout/' }), (r'^accounts/password_reset/done/$',<b>'django.contrib.auth.views.password_reset_done'</b>,{'template_name':'user/password_reset_done.html'}),(r'^accounts/change_password/$',<b> 'password_change'</b>, {'post_change_redirect' : '/accounts/change_password/done/'}),(r'^accounts/change_password/done/$',<b> 'password_change_done'</b>,{'template_name':'user/password_change_done.html'}),<b>password_reset_email.html</b>{% extends 'base.html'%}{% block content%}{% url django.contrib.auth.views.password_reset_confirm uidb36=uid, token=token %}{% endblock %}I add necessary templates in the folder 'user'.Please help me,Thanks in advance.


how can I configure the port 25?

2019年08月26日43分20秒

Go to your control panel and open "Windows Firewall". Then, click "Advanced Settings" and add a new inbound rule allowing traffic on port 25 (After verifying that it's port 25 that's causing the problem and not another one). Then, make sure your port 25 is properly configured on the network, just as you configured the port apache uses (probably 80)

2019年08月27日43分20秒

Can I use development server (builtinin django) for the purpose.am sorry to specify now am in development server

2019年08月26日43分20秒

Your code sends a request back to your server's port 25 (be sure it's this port), so you'll need it set up if you want to test. I'll edit in a file for helping debug smtp requests. Just run this in the background and make sure traffic is allowed on port 25.

2019年08月27日43分20秒

You'll also want to make sure django is making the request to "localhost:25", or a properly-configured "domain.com:25"

2019年08月26日43分20秒

Am using Windows7,and run using python manage.py runserver.[now am in development server],Is it possible to send mail using the built in development server in Django?

2019年08月27日43分20秒