В 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
😄Great
➖➖➖➖➖➖
🔘Great is an adjective to talk about something being very big, very important or very good.
🔜We've seen great improvement in the last 10 years.
🔜This is the great question of our time.
🔜This is just a great video!
🔘We can use great with adjectives, particularly those related to large quantities or sizes to emphasise them.
🔜He caught a great big fish!
🔜They have a great many properties all over the world.
🔘Sometimes we use great as a noun, to talk about the people or things that we think are particularly important or successful.
🔜As a singer, she's one of the greats.
🔜He's one of the all-time greats of basketball.
🔜You need to study the greats of literature.
#Great👨🏫@America
➖➖➖➖➖➖➖➖➖➖➖➖
🆕 Crypto News @Money
😁 Crypto Game @Egame
🇺🇸 US News @America
🇯🇵 Japan News @Japan
🇦🇪 UAE News @Dubai
▶️ Popular Movies @Videos
😜 Best Funny Video @Funnys
Greta Thunberg said that Israel sent back her luggage with the inscriptions “Greta is a whore” and an image of penis.
There is no evidence that this was drawn by the Israelis.
Do you agree that Greta is a whore?
#great#whore#israel
👂More on Trump's Ear ⚠️
🔥 Fidoyi ustozlar taqdirlandi!
🇺🇿 Barcha rivojlangan mamlakatlar, jumladan AQSH, Buyuk Britaniya, Yaponiya, Germaniya, Janubiy Koreya, Singapurda nodavlat ta’lim muassasalarining o‘rni beqiyos. Ta’lim tizimiga baho beruvchi, dunyo tan olgan oliy o‘quv muassasalarining jahon reytinglarida ham nodavlat ta’lim muassasalari eng yuqori o‘rinlarni egallab kelmoqda.
🚫 O‘zbekiston Respublikasi Prezidentining 2017 yil 15 sentyabrdagi “Nodavlat ta‘lim xizmatlari ko‘rsatish faoliyatini yanada rivojlantirish chora-tadbirlari to‘g‘risida”gi PQ-3276-son Qaroriga asosan Finlandiya davlati tajribasi asosida faoliyat yuritayotgan Respublika “Diagnostik test sinov” nodavlat ta’lim muassasasi tomonidan 2024 yil 24 iyul kuni “Ta’lim fidoyisi” ko‘krak nishoni ta’sis etildi.
📎 Shu maqsadda, O‘zbekiston Respublikasi Konstitutsiyasi qabul qilinganligining 32 yilligi munosabati bilan O‘zbekiston Respublikasi Vazirlar Mahkamasi huzuridagi Biznes va tadbirkorlik oliy maktabida faoliyat yuritayotgan tajribali, professional, yuqori malakaga ega bo‘lgan professor o‘qituvchilari “Ta’lim fidoyisi” ko‘krak nishoni bilan taqdirlandi.
#GraduateSchool#Meeting#Teacher#Great
🔝Web-site |🔝Facebook | 🔝Instagram | 🔝Youtube