Jafnee

Results 3 comments of Jafnee

@richtier @joke2k What do you think of having like this: ```python # (env variable, list of choices, optional default value) MY_SETTING = env.choices('MY_ENV', ['choice_1', 'choice_2', 'choice_3'], 'choice_3') ``` Or maybe...

I haven't tested this, but would creating your own lazy class work? ```python def create_something(): return "SOMETHING" class LazyString: def __init__(self, value, fn): self.value = value self.fn = fn def...

Shouldn't need to replace everything to `settings.OTHER_THING.value`, the example above is meant to evaluated lazily whenever the setting is used. The value will either be the string set via env...