from os import environ
from split_settings.tools import optional, include
ENV = environ.get('ENV', 'local')
include(
'components/base.py',
'components/database.py',
optional('local_settings.py' if ENV == 'local' else None),
)
When I try to run my django app I get an error
File "/app/config/settings/__init__.py", line 55, in <module>
include(
File "/usr/local/lib/python3.11/site-packages/split_settings/tools.py", line 107, in include
with open(included_file, 'rb') as to_compile:
^^^^^^^^^^^^^^^^^^^^^^^^^
IsADirectoryError: [Errno 21] Is a directory: '/app/config/settings'
I tried to fix this error in #510 but the PR is just being ignored. We can't upgrade django-split-settings from version 1.2.0 to newer
I have a settings like this
When I try to run my django app I get an error
I tried to fix this error in #510 but the PR is just being ignored. We can't upgrade django-split-settings from version 1.2.0 to newer