В 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
🌎 On Ellesmere Island in Canada’s High Arctic, Alert is Earth’s northernmost permanently inhabited settlement. In winter, temperatures can plunge to –40°C, and the sun disappears for months. Fewer than 100 people live here year-round. ✨
#arctic⚡#climate⚡#isolation
👉subscribe Interesting Planet
👉more Channels
🌎 One of the world's most remote settlements is Tristan da Cunha, an island in the South Atlantic Ocean. Home to only about 250 people, it lies 2,400 kilometers from the nearest continent. The island has no airport and is accessible only by a week-long boat journey from South Africa. ✨
#geography⚡#settlements⚡#isolation
👉subscribe Interesting Planet
👉more Channels
La canzone "C'è solo la strada" di Giorgio Gaber invecchia terribilmente bene e dopo il 2020 acquista quasi natura profetica.
#vaporonda#vaporwave#vapourwave#vaporart#seapunk#webpunk#glitch#glitchart#glitchartistscollective#chillwave#aesthetic#vaporwaveaesthetic#vaporwaveaesthetics#malinconia#melancholy#tristezza#sadness#sadboy#lofi#solitudine#loneliness#isolamento#isolation#casa#home#giorgiogaber