Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
eclipticplane
on May 10, 2023
|
parent
|
context
|
favorite
| on:
A Codebase That Makes Codebases
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="%]")`
czue
on May 10, 2023
[–]
Awesome, thanks! I think I'll have to do the equivalent thing in cookiecutter, but this gives me a good path to go down.
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
And you'd set something like `Environment(block_start_string="[%", block_end_string="%]")`