标签: django django-templates
我想使用这样的自定义include:
include
<script>{% custom_include 'bundle.js' %}</script> def custom_include: if settings.env == 'test' return '' return include('bundle.js')
我可以从某处导入吗?