TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #221 · 5 мар.

В 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

Резултати

Пронајдени 1 слични објави

Пребарај: #dickfrancis

当前筛选 #dickfrancis清除筛选

🏇 Dick Francis (1920–2010) was a British steeplechase jockey (over 350 wins) and the author of 43 crime novels. 📖 The book Smokescreen (1972) and its film adaptation is a detective story set in South Africa. 🎬 Plot: a popular British actor flies to South Africa to find out why an elderly lady’s horses are performing so poorly. But he soon discovers that an ill-wisher is out to get him. 🏇 The novel features detailed accounts of horse races in Durban and thrilling scenes in Kruger National Park, immersing readers in the atmosphere of African adventure. #DickFrancis#Literature#Books#CrimeFiction#SouthAfrica#Kruger#Durban