В 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
https://github.com/python-telegram-bot/python-telegram-bot/wiki/Webhooks#heroku
On #Heroku using #webhook can be beneficial on the free-plan because it will automatically manage the downtime required. The reverse proxy is set up for you and an environment is created. From this environment you will have to extract the port the #bot is supposed to listen on. Heroku manages the #SSL on the #proxy side, so you don't have provide the certificate yourself.
Build A screen recorder with python
#pythonprogramming#obs#heroku#heroku#infotel
follow me in github - www.github.com/rohith-sreedharan
follow me on Instagram - Instagram.com/rohithaditya_2004
follow me on Twitter - Twitter.com/rohithaditya
follow our bot channel - telegram.me/Bots_universe
website - botsuniverse.live
mail - [email protected]
#hosting#netlify#webhost#heroku
Qanday qilib yaratgan saytingizni internetga bepul joylash mumkin?
🔗netlify.com
🔗000webhost.com
🔗heroku.com
Mana shu saytlar orqali siz saytingizni bepul internetga qo'ysangiz bo'ladi 😉
💻@dasturlash_hayoti — bir xatoni tuzatib, ikkinchisiga tayyorlanish! 😅
#hosting#netlify#webhost#heroku
Qanday qilib yaratgan saytingizni internetga bepul joylash mumkin?
🔗netlify.com
🔗000webhost.com
🔗heroku.com
Mana shu saytlar orqali siz saytingizni bepul internetga qo'ysangiz bo'ladi 😉
💻@dasturlash_hayoti — dasturchilar va dasturlash hayotini yoritib boradigan loyiha!