mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-08 06:18:12 +08:00
docs: changed header
This commit is contained in:
+5
-3
@@ -1,12 +1,12 @@
|
|||||||
Examples
|
Examples
|
||||||
--------
|
--------
|
||||||
|
|
||||||
Sending mails
|
Async emails
|
||||||
=============
|
============
|
||||||
|
|
||||||
Sending an email can take a while so why not queue it::
|
Sending an email can take a while so why not queue it::
|
||||||
|
|
||||||
# Welcome mail with follow up
|
# Welcome mail with follow up example
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from django.utils import timezone
|
from django.utils import timezone
|
||||||
from django_q import async, schedule, Schedule
|
from django_q import async, schedule, Schedule
|
||||||
@@ -82,6 +82,8 @@ The task will send a message to everyone else informing them that the users emai
|
|||||||
'New email', msg, 'from@example.com', [u.email])
|
'New email', msg, 'from@example.com', [u.email])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
If you have an example you want to share, please submit a pull request on `github <https://github.com/Koed00/django-q/>`__.
|
If you have an example you want to share, please submit a pull request on `github <https://github.com/Koed00/django-q/>`__.
|
||||||
|
|||||||
Reference in New Issue
Block a user