1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-12 18:07:29 +02:00

Noms des fichiers en français

This commit is contained in:
Emmy D'Anello 2025-05-31 12:18:12 +02:00
parent 62abfa94d6
commit 6a521b6121
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85

View File

@ -5,11 +5,13 @@ from pathlib import Path
from django.conf import settings
from django.core.management import BaseCommand
from django.utils.translation import activate
from participation.models import Solution, Tournament
class Command(BaseCommand):
def handle(self, *args, **kwargs):
activate(settings.PREFERRED_LANGUAGE_CODE)
base_dir = Path(__file__).parent.parent.parent.parent
base_dir /= "output"
if not base_dir.is_dir():