django-split-settings icon indicating copy to clipboard operation
django-split-settings copied to clipboard

BASE_DIR is broken after implementing django-split-settings

Open Reve opened this issue 4 years ago • 2 comments

There should be a mention in the documentation that you have to update the BASE_DIR constant in order for language, media and static folders to work.

A crude workaround is to update the path from: BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(file))) to BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(file))))

Reve avatar Feb 18 '21 07:02 Reve

It really depends on how you implement your BASE_DIR and how do you store your split_settings.

In your case, yes, it should be updated. I don't think that this is addition to the docs is vital, but I would accept a PR from you with the required changes.

sobolevn avatar Feb 18 '21 08:02 sobolevn

BASE_DIR is set by django create-project command as a default, this is why I was suggesting a mention in the documentation :)

Reve avatar Feb 18 '21 08:02 Reve

Just created a PR to update the README

adnathanail avatar Jan 25 '23 00:01 adnathanail