В 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
The euro banknotes feature the name of the currency in how many different scripts?
(hidden behind the cat in the image)
Options:
A) 1
B) 2
C) 3
D) 4
@languagetrivia#script
#Python#script
🤖
PlotAI
PlotAI es una herramienta para generar gráficos en Matplotlib.
— el usuario envía un marco de datos como entrada;
— PlotAI crea un mensaje para LLM, que contiene los primeros cinco registros y genera código Python;
- Se ejecuta el código Python devuelto y se muestra el gráfico.
pip install plotai
🔗Github
-----
Main channel: @repo_science
Coupons: @freecoupons_reposcience
-----
🌍 Which African country uses Amharic as an official language?
A) 🇪🇹 Ethiopia
B) 🇪🇷 Eritrea
C) 🇸🇴 Somalia
D) 🇸🇩 Sudan
@languagetrivia#guess_the_country#script
Which language is written in a script called ‘Devanagari’, a script characterized by a horizontal line running along the top of the letters, connecting them?
Follow @languagetrivia🌏 for more!
#script#image#guess_the_language