@perspectiveix · Post #1391 · 08.07.2018 г., 12:00
⚡️Super Processors! #Graphene could soon make your computer 1000 times faster while using only 1% the energy. 🚀@PerspectiveIX
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #221 · 5 мар.
В 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
Пребарај: #graphene
@perspectiveix · Post #1391 · 08.07.2018 г., 12:00
⚡️Super Processors! #Graphene could soon make your computer 1000 times faster while using only 1% the energy. 🚀@PerspectiveIX
Hashtags
@djangoproject · Post #406 · 06.08.2017 г., 08:23
http://docs.graphene-python.org/projects/django/en/latest/tutorial-plain/ #Graphene has a number of additional features that are designed to make working with #Django really simple. Our primary focus here is to give a good understanding of how to connect models from Django ORM to graphene object types.