В 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
🌎 Leafcutter bees and flowering plants have a mutualistic relationship—bees gather pollen and nectar to feed their larvae, while plants get pollinated. Each bee can visit up to 100 flowers in a single foraging trip. ✨
#symbiosis⚡#animals⚡#pollination
👉subscribe Interesting Planet
👉more Channels
🌎 A single honeybee visits up to 5,000 flowers in one day, gathering nectar to make honey and pollinate plants—crucial for global food crops! ✨
#bees⚡#pollination⚡#nature
👉subscribe Interesting Planet
🌎 The flying fox bat of Southeast Asia boasts a wingspan up to 1.7 meters. Unlike most bats, it feeds mainly on fruit and nectar, playing a key role in pollinating trees that support tropical forests and countless wildlife. ✨
#flyingfox⚡#pollination⚡#rainforest
👉subscribe Interesting Planet
California trucks 1.5 million to 2.6 million bee hives each spring to pollinate almond farms. Pesticides and fungicides used on almonds hurt bees’ health and make it hard for them to find food. Bees also get stressed from long trips and losing their honey. These problems cause many bees to die or disappear. Almonds are pasteurized, which lowers their natural quality. Reducing almond farming could help protect bees and the environment by making almonds rarer. 🐝🌰🚛🌱
[Read more]
[Read more]
@googlefactss
#Bees#Almonds#Pollination#Pesticides#ColonyCollapseDisorder#SaveTheBees#Sustainability
Ну что, с коровами почти покончили, возьмёмся за пчёл:
Лабораторно выращенные медоносные пчелы, созданные лишь для того, чтобы быть рабами и умирать рано. Генеральный директор ForgeBee Адам Гамильтон говорит, что компания использует ИИ и робототехнику для выращивания партий одноразовых пчел, которые будут отправляться пчеловодам и фермерам. Он говорит: "Их поведение будет манипулироваться с помощью комбинации химических веществ, которые по сути заставят пчел чаще собирать пыльцу". Эти "единицы", как они их называют, будут иметь срок жизни от двух до трех недель, посвященных опылению сельскохозяйственных культур.
Кто-нибудь еще обеспокоен этим? А если эти измененные, лабораторно выращенные пчелы окажутся в дикой природе... что может пойти не так?
Читайте: https://www.brownfieldagnews.com/news/lab-grown-honeybees-could-be-future-of-food-production/
#LabGrownHoneybees#honeybees#bees#pollinators#pollination#beekeepers#food#health#healthy#holistic#holistichealth#gmofreecanada#gmofreeusa#toxinfreeusa
https://t.me/VseWeda/88080