Re:A Codebase That Makes Codebases
by eclipticplane on Wednesday May 10, 2023 @11:38AM
(#35888943)
For Django specifically, I believe you need to pass in a dotted path to a method that returns a Jinja2 `Environment`. There's an example in the docs: https://docs.djangoproject.com/en/4.2/topics/templates/#djan...
And you'd set something like `Environment(block_start_string="[%", block_end_string="%]")`
Seriously though, thanks. That sounds like a much better option. Wasn't totally clear how to do it from the link you sent but will look closer into it.