12 lines
272 B
Python
12 lines
272 B
Python
from django.apps import AppConfig
|
|
from mycaldav.cron import InitTaskSync
|
|
|
|
|
|
class CaldavConfig(AppConfig):
|
|
default_auto_field = 'django.db.models.BigAutoField'
|
|
name = 'mycaldav'
|
|
|
|
def ready(self):
|
|
my_cron_job = InitTaskSync()
|
|
my_cron_job.start()
|