mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-08 17:58:12 +08:00
Testing basic layout
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
from django.core.management.base import BaseCommand
|
||||
from django_q.q import Worker
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
help = "My shiny new management command."
|
||||
|
||||
def handle(self, *args, **options):
|
||||
q = Worker()
|
||||
@@ -0,0 +1,10 @@
|
||||
from django.core.management.base import BaseCommand
|
||||
|
||||
from django_q import q
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
help = "My shiny new management command."
|
||||
|
||||
def handle(self, *args, **options):
|
||||
q.test()
|
||||
Reference in New Issue
Block a user