make file system case sensitive a setting

to allow docker/mac inconsistency override
This commit is contained in:
Jirka Schaefer 2023-03-29 22:51:51 +02:00
parent 51dc6bf02e
commit 013fbbbb8d

View file

@ -1,5 +1,4 @@
import os
import tempfile
from datetime import datetime
import django
@ -71,11 +70,9 @@ def find_pos(lang, project_apps=True, django_apps=False, third_party_apps=False)
)
)
case_sensitive_file_system = True
tmphandle, tmppath = tempfile.mkstemp()
if os.path.exists(tmppath.upper()):
# Case insensitive file system.
case_sensitive_file_system = False
case_sensitive_file_system = getattr(
settings, "ROSETTA_CASE_SENSITIVE_FILESYSTEM", False
)
# django/locale
if django_apps: