modif cron

This commit is contained in:
2024-04-12 15:12:27 +02:00
parent 0f3adecf91
commit a94a0b0fe8
6 changed files with 23 additions and 13 deletions

View File

@@ -39,6 +39,7 @@ CSRF_TRUSTED_ORIGINS = ['https://rh.ambulance-clerc.ch']
LOGIN_REDIRECT_URL = '/admin'
INSTALLED_APPS = [
'jazzmin',
'django_cron',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
@@ -54,8 +55,7 @@ INSTALLED_APPS = [
'rangefilter',
'django.contrib.admin',
'carnet_rouge.apps.CarnetRougeConfig',
'django_summernote',
'django-cron',
'django_summernote',
]
INSTALLED_APPS += ( 'apilog.apps.ApilogConfig',)
@@ -135,6 +135,10 @@ MIDDLEWARE = [
'django.middleware.locale.LocaleMiddleware',
]
CRON_CLASSES = [
"mycaldav.cron.InitTaskSync",
]
CORS_ALLOWED_ORIGINS = [
"http://33.144.144.13:4173",
"http://33.144.144.13:5173",