Skip to content

Use custom Jinja2 filters #1090

Answered by rochacbruno
berti-peitz asked this question in Q&A
Discussion options

You must be logged in to vote

Never tried but may work.

from dynaconf import Dynaconf
from dynaconf.utils.parse_conf import jinja_env
jinja_env.filters['rfc1123'] = rfc1123


settings = Dynaconf(...)

Maybe we need to provide a better standard way to do that.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@berti-peitz
Comment options

Answer selected by berti-peitz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants