Configuration du build dev pour le projet agenda_culturel

This commit is contained in:
Jean-Marie Favreau
2023-09-16 15:15:05 +02:00
parent 016a00bf2f
commit 7e5305b47d
16 changed files with 19 additions and 18 deletions

View File

@@ -7,7 +7,7 @@ import sys
def main():
"""Run administrative tasks."""
APP_ENV = os.getenv("APP_ENV", "dev")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", f"project_name.settings.{APP_ENV}")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", f"agenda_culturel.settings.{APP_ENV}")
try:
from django.core.management import execute_from_command_line
except ImportError as exc: