Replies: 2 comments 6 replies
-
No takers? |
Beta Was this translation helpful? Give feedback.
1 reply
-
@pedro-psb I was thinking about adding a new converter like: KEY="@expr not this.debug" Any valid Jinja expression would be supported. (install jinja required) and then we can use Jinja to evaluate the expression from dynaconf.utils.parse_conf import jinja_env
result = jinja_env.compile_expression("1 + value")(value=2) That could be added as a lazy value def evaluate_expr(expr, **context):
return jinja_env.compile_expression(expr)(**context)
converters["@expr"] = lambda value: Lazy(value, formatter=evaluate_expr) |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my Django settings.py file I have some settings that depend on DEBUG. Eg:
What is the recommended way of handling this with Dynaconf, when I move the DEBUG setting to a yaml file? Since Dynaconf is only initialised at the end of settings.py, after the (current) usage of DEBUG.
TIA
Beta Was this translation helpful? Give feedback.
All reactions