django html comment out-condition problem

◾️ this comment out(user login check) line is effective, so delete it completely.

<!– {% if target_project.writer == user %} –>

{% extends 'base.html' %}

{% block content %}

    <div class="project-detail">
        <h1>{{ target_project.title }}</h1>
        <h3>{{ target_project.writer.profile.nickname }}</h3>
        <img src="{{ target_project.image.url }}" alt="">
        <p>{{ target_project.desc }}</p>

        <!-- {% if target_project.writer == user %} -->
        {% include 'snippets/related_list.html' with article_list=object_list %}
        <!-- {% endif %} -->

        <hr>
    </div>
{% endblock %}

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です