В 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
Putting feelings into words can help your brain process them. Saying “I feel angry,” “I feel hungry,” or “I feel love” lowers activity in the amygdala, which reacts strongly to emotions. At the same time, the right ventrolateral prefrontal cortex becomes more active. These brain areas work together, helping the brain manage all types of feelings more clearly.
🧠🗣️💭
[Read more]
@googlefactss
#BrainFacts#Emotions#AffectLabeling#Neuroscience#MentalHealth
Scientists studied how well people can judge personality traits such as extraversion, intelligence, and empathy. They used short videos, muted videos, and photos to see how much information helps. Participants were also tested on their ability to recognize emotions. The results showed that people who are better at recognizing emotions are also better at judging personality accurately. In this study, women were generally more accurate than men.
🧠👀📹
[Read more]
@googlefactss
#PsychologyFacts#Personality#EmotionRecognition#SocialScience#BrainFacts