В Python есть удобный почтовый debug-сервер. Он поможет проверить работу почты вашего web-проекта на этапе разработки без необходимости настраивать внешние сервисы или взаимодействие с реальными серверами Google или Yandex. Этот сервер просто печатает все сообщения в консоль.
Таким образом удобно дебажить одноразовые ссылки активации или просто факт отправки письма по расписанию.
Запускается очень просто:
python3 -m smtpd -n -c DebuggingServer localhost:1025
Теперь настройте ваш проект на использование этого сервера. Например вот так настраивается Django:
# settings.py
if DEBUG:
EMAIL_HOST = 'localhost'
EMAIL_PORT = 1025
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_USE_TLS = False
DEFAULT_FROM_EMAIL = '[email protected]'
#django#tricks
Una alegría convertida en tristeza: una pareja y su hijo fueron rescatados de entre los escombros casi 300 horas después de ocurrido el terremoto que devastó Turquía. El niño lamentablemente falleció en el hospital. #DW
«Считается, что размер армии КНДР в районе 1,2 миллиона человек. Срочная служба обязательна для мужчин и женщин. Для мужчин — около десяти лет», — объясняет в интервью#DW востоковед и кореевед Андрей Ланьков. При этом примерно половина армии Северной Кореи — стройбат и военизированные отряды сельскохозяйственных рабочих, остальные подразделения — боевые. Ланьков считает, что нельзя судить о боеспособности северокорейской армии — она принимала участие в боевых действиях с 1953 года. По его словам, КНДР может направить в Россию до 60 тысяч солдат.
News: #Ethiopian Foreign Minister says he cannot intervene in revoked Deutsche Welle reporters’ licenses
Ethiopian Minister of Foreign Affairs Gedion Timotheos (PhD) said he cannot intervene in the case of two Deutsche Welle (#DW) reporters whose licenses were permanently revoked by the Ethiopian Media Authority, citing the regulator’s accountability to Parliament rather than the executive branch.
The remarks were made during a joint press conference in Addis Abeba with German Federal Foreign Minister Johann Wadephul, in response to a question raised by DW journalist Richard Walker. Walker recalled Ethiopia’s ranking of 145th out of 180 countries in the 2025 Reporters Without Borders press freedom index and asked whether the government would take steps to improve the media environment and revisit the decision affecting the two DW Amharic service reporters based in the #Tigray and #Amhara regions.
“I cannot personally look into such matters,” Minister....
Read more: https://addisstandard.com/?p=54734