Django 1.10을 사용하고 있으며이 라이브러리에 'nested_inline'이 설치되어 있습니다. 정말이 lib가 필요하지만 관리자 페이지를로드 할 때 다음 오류가 발생합니다.Django 1.10 TemplateSyntaxError 'future'가 등록 된 태그 라이브러리가 아닙니다.
{% load i18n admin_static admin_modify %}
{% load cycle from future %}
<div class="inline-group{% if recursive_formset %}
{{ recursive_formset.formset.prefix|default:"Root" }}
-nested-inline{% if prev_prefix %} {{ prev_prefix }}
-{{ loopCounter }}-nested-inline{% endif %}
nested-inline{% endif %}" id="{{ inline_admin_formset.formset.prefix }}-group">
{% with recursive_formset=inline_admin_formset stacked_template='admin/edit_inline/stacked-nested.html' tabular_template='admin/edit_inline/tabular-nested.html'%}
<div class="tabular inline-related {% if forloop.last %}last-related{% endif %}" id="{{ recursive_formset.formset.prefix }}">
{{ recursive_formset.formset.management_form }}
<fieldset class="module">
<h2>{{ recursive_formset.opts.verbose_name_plural|capfirst }}</h2>
{{ recursive_formset.formset.non_form_errors }}
<table>
<thead><tr>
{% for field in recursive_formset.fields %}
그래도이 기능은 django_nested_inline 라이브러리에서 사용하고 있습니다. –
@AbhishekJebaraj이 문제는 최신 커밋에서 수정되었습니다. [Github] (https://github.com/s-block/django-nested-inline)에서 직접 설치할 수 있습니다. – hsfzxjy
위대한 @hsfzxjy, 나는 그 대답을 답으로 게시해야한다고 생각합니다. 관련 커밋 : https://github.com/s-block/django-nested-inline/issues/65 – slackmart