В 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
‘I told them it isn’t for me, but they didn’t believe me. They kept beating me. They fed me very poorly.’
This Indian girl was held as a sex slave for a year. She left home to get some money for her brothers to get an education, but it ended badly for her. In India, these kinds of stories are common. Children are often kidnapped and sold into slavery.
Today is International Missing Children’s Day, that’s why we want to show you this poor Indian girl’s story. Watch the clip to know what horror she has gone through.
Find more stories like this in the documentary Lost Kids.
#children#slavery
Follow: https://t.me/rtdocumentary
🖊🗞OPINION | The Revolution Will Not Be Terrorized
Andreína Chávez traces a chilling line from the Zong Massacre to the US military terror now unfolding in Caribbean waters.
UN officials have classified recent US bombings in Caribbean and Eastern Pacific waters as “extrajudicial killings,” with more than 80 people killed since September. Victims were from Venezuela, Colombia, and Trinidad and Tobago.
Washington’s accusations tying Venezuela to major drug trafficking contradict UNODC and DEA findings, which confirm the country does not produce drugs and plays an insignificant role as a transit route.
Read the full VA opinion piece here 👉🏾https://shorturl.at/6Gxhm
#Slavery#USImperialism#USMilitaryThreats#Venezuelanhistory
Один из самых успешных работорговцев в истории, кому тем не менее установлены памятники в Африке. Португалец, давший начало африканскому роду. Проходимец, ставший побратимом короля Дагомеи. Католик, похороненный с почестями в виде человеческих жертвоприношений. Белый пращур, вошедший в пантеон вуду – Франсиску Фелиз ди Соза (1754–1849).
У него были десятки жен и сотни детей, и его клан поныне пользуется большим влиянием в Того и Бенине. Вокруг клана также консолидируются потомки бразильских рабов, вернувшихся на родину после отмены рабовладения – включая тех, кого Соза продал. Для этих людей он не злодей и не угнетатель, а покровитель, фигура престижа и силы, предок-лидер. На фото – потомки Франсиску и патриарх рода Чача VIII.
Эта история ставит интересные вопросы перед теорией деколонизации, идеологическая линия которой (плод западной Академии) может не соответствовать запутанным человеческим связям и локальным мировоззрениям. Больше информации тут (на французском).
#Benin#Brazil#Africa#slavery
Solomon Northup was a free Black man who was kidnapped and sold into slavery for 12 years. He was freed on January 4, 1853. He wrote a book called Twelve Years a Slave about his life as a slave. His story helps people understand what slavery was like. 📚✊🏾
[Read more]
@googlefactss
#SolomonNorthup#Slavery#History#TwelveYearsASlave#Freedom