Просмотр исходного кода

Fixed #22443 -- Document smtp.EmailBackend.timeout default value

Django 1.7 introduces a new timeout parameter for the SMTP email backend:
http://docs.djangoproject.com/en/dev/topics/email/#django.core.mail.backends.smtp.EmailBackend.timeout

However, there was no mention of the default value for this parameter.
Mariano Rezk 11 лет назад
Родитель
Сommit
4e3d8ae610
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      docs/topics/email.txt

+ 3 - 0
docs/topics/email.txt

@@ -472,6 +472,9 @@ SMTP backend
         Then point the :setting:`EMAIL_BACKEND` setting at your custom backend as
         described above.
 
+        If unspecified, the default ``timeout`` will be the one provided by
+        :func:`socket.getdefaulttimeout()`, which defaults to ``None`` (no timeout).
+
 .. _topic-email-console-backend:
 
 Console backend