Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate Django settings best practices / patterns / libraries etc #1182

Open
davmlaw opened this issue Oct 16, 2024 · 0 comments
Open

Investigate Django settings best practices / patterns / libraries etc #1182

davmlaw opened this issue Oct 16, 2024 · 0 comments

Comments

@davmlaw
Copy link
Contributor

davmlaw commented Oct 16, 2024

Would be worth looking around for projects, or best practices we can learn from

One of the current pains is that if you have eg:

ANNOTATION_BASE_DIR = "/data/annotation"
ANNOTATION_VEP_BASE_DIR = os.path.join(ANNOTATION_BASE_DIR, "VEP")
ANNOTATION_VEP_VERSION_DIR = os.path.join(ANNOTATION_VEP_BASE_DIR, "vep_code", ANNOTATION_VEP_VERSION)

and you want to change ANNOTATION_BASE_DIR you have to re-declare everything that depends on it

There might be some way to get around this like evaluating at run time, or being immutable and setting 1st - check for what others do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant