mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-24 14:18:11 +08:00
README simplified example
This commit is contained in:
+2
-3
@@ -151,13 +151,12 @@ Admin page or directly from your code:
|
||||
.. code:: python
|
||||
|
||||
from django_q import Schedule
|
||||
from django.utils import timezone
|
||||
|
||||
Schedule.objects.create(func='math.copysign',
|
||||
hook='hooks.print_result',
|
||||
args='2,-2',
|
||||
schedule_type=Schedule.DAILY,
|
||||
next_run=timezone.now())
|
||||
schedule_type=Schedule.DAILY
|
||||
)
|
||||
|
||||
Todo
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user