dynaconf / dynaconf/dynaconf

How can I add a export var to override a nested section through @jinja syntax ??

Open
#697 2 comments 0 reactions 0 assignees View on GitHub
LazyIssue question
Dominant language
Python
Stars
4.3k
Forks
347
Avg merge
2d 2h
Merged PRs (30d)
1

Description

How can I add a export var to override a field in nested section through @jinja syntax ??

There is my situation:

default_settings.toml:
```toml
[default]
base = "@jinja {{this.current_env | lower}}"
topic = "15021"

[default.mq]
routekey_prefix = "Topic-CAD-Dispatch-Cmd-RouteKey-"
routekey = "@jinja {{this.mq.routekey_prefix}}{{this.base}}.{{this.topic}}"
```

When I export this `topic=11`, this lazy loader can not substitute `{{this.topic}}` in the routekey correctly.I need some help,please.

Thank you.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.