Django - [Errno 111] Connection refused

前端 未结 8 1502
感情败类
感情败类 2020-11-29 21:29

when I post a comment, do not save, crashes (error: [Errno 111] Connection refused), why?

views.py

import time
from calendar import month_name

from          


        
8条回答
  •  甜味超标
    2020-11-29 21:59

    We recently moved away from the Python debugging email server to use a program called Mailcatcher. Mailcatcher runs as a daemon to intercept all of your test email messages to port 1025, and is integrated with a web server so that you can then view the intercepted emails from a browser. Advantages

    • you can view test emails as HTML if needed
    • central management of all test emails -- they stay around until you clear them
    • view test emails from any browser, instead of scrolling through terminal window

    You can read more and download it here: http://rubygems.org/gems/mailcatcher

    If you don't like Ruby, a co-worker of mine has ported the functionality of Mailcatcher to node.js -- check out MailDev here: http://djfarrelly.github.io/MailDev/

提交回复
热议问题