В 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
Bitcoin ETFs See Major Inflow Reversal
On January 15, Bitcoin spot ETFs recorded a net inflow of $755 million, marking the first inflow after four days of outflows. The Fidelity ETF (FBTC) led the charge, attracting $463 million. Meanwhile, Ethereum products also saw inflows, totaling $59.78 million.
Forecasts from HashKey Group predict Bitcoin could hit $300,000 by 2025 and Ethereum $8,000, with overall market cap reaching $10 trillion. Analyst insights suggest the Litecoin ETF may be next for approval in the US.
For more details, visit the link.
#Bitcoin#ETF#Cryptocurrency#Ethereum#Investing#Finance#MarketTrends#HashKey#Litecoin#Fidelity#CryptoForecast#AI#VC