JW
The current project's Python requirement (^3.8) is not compatible with some of the required packages Python requirement: - djangorestframework-simplejwt requires Python >=3.6,<3.9
Size: a a a
JW
The current project's Python requirement (^3.8) is not compatible with some of the required packages Python requirement: - djangorestframework-simplejwt requires Python >=3.6,<3.9
DB
The current project's Python requirement (^3.8) is not compatible with some of the required packages Python requirement: - djangorestframework-simplejwt requires Python >=3.6,<3.9
pyproject.toml
) написано, что он должен запускаться на ^3.8
питоне, а это все версии >=3.8.0,<4.0.0
D
pyproject.toml
) написано, что он должен запускаться на ^3.8
питоне, а это все версии >=3.8.0,<4.0.0
NC
ЭД
DB
ЭД
DT
DT
DT
DT
ЭД
DB
DB
S
ЭД
ЭД
tn
DO
# Email Set Upне понимаю почему не может создастся connection. настроек недостаточно?
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
EMAIL_HOST = "smtp.gmail.com"
EMAIL_USE_TLS = True
EMAIL_PORT = 587
EMAIL_HOST_USER = os.getenv("EMAIL_HOST_USER")
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
EMAIL_HOST_PASSWORD = os.getenv("EMAIL_HOST_PASSWORD")
email_html_body = render_to_string(
os.path.join(settings.EMAIL_TEMPLATES_DIR, 'warning_email_2.html'),
email_context,
)
email_plaintext_body = strip_tags(email_html_body)
email_message = EmailMultiAlternatives(
subject=settings.WARNING_EMAIL_1_SUBJECT,
body=email_plaintext_body,
to=[plagiator_email],
bcc=[client_email],
)
email_message.attach_alternative(
email_html_body,
'text/html',
)
email_message.send()