diff --git a/Reskreen/settings.py b/Reskreen/settings.py index 191bf08..e9e4b0d 100644 --- a/Reskreen/settings.py +++ b/Reskreen/settings.py @@ -12,7 +12,7 @@ https://docs.djangoproject.com/en/4.0/ref/settings/ from pathlib import Path import os -from .server_config import * +from Reskreen.server_config import * # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent @@ -197,7 +197,7 @@ else: 'default': { 'ENGINE': 'django.db.backends.mysql', 'OPTIONS': { - 'read_default_file': 'Reskreen/my.cnf', + 'read_default_file': os.path.join(BASE_DIR, 'Reskreen/my.cnf'), }, } } diff --git a/crons_jobs b/crons_jobs index ee60243..f365558 100644 --- a/crons_jobs +++ b/crons_jobs @@ -1,2 +1,2 @@ # Exécute la tâche cron toutes les heures -* * * * * cd /app && python /app/manage.py runcrons > /var/log/runcrons.logs +* * * * * cd /app && python /app/manage.py runcrons > /var/log/runcrons.log