From 177002b8b8b11f07ab32643570f8564292b82e0d Mon Sep 17 00:00:00 2001 From: imperosol Date: Tue, 2 Jun 2026 12:56:14 +0200 Subject: [PATCH] tweak django-countries settings --- sith/settings.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sith/settings.py b/sith/settings.py index 21d4f11f..ce872c7d 100644 --- a/sith/settings.py +++ b/sith/settings.py @@ -115,6 +115,7 @@ INSTALLED_APPS = ( "django_jinja", "ninja_extra", "haystack", + "django_countries", "django_celery_results", "django_celery_beat", "captcha", @@ -294,7 +295,11 @@ USE_TZ = True LOCALE_PATHS = [BASE_DIR / "locale"] +# for PhoneNumberField PHONENUMBER_DEFAULT_REGION = "FR" +# for CountryField +COUNTRIES_FIRST = ["FR", "CH", "DE"] +COUNTRIES_FIRST_BREAK = "───────────" # Medias MEDIA_URL = "/data/"