models.py
views.py
html
{% for notice in notice_list %}
{{notice.id}}
{{ notice.content_object.pub_date|timesince }}
{{notice.sender}}
{% ifequal notice.n_type 1 %}
<a href="{% url 'bbs:bbs_detail' notice.content_object.topic.id %}"> {{notice.content_object.topic.title}}</a>
{% else %}
<a href="{% url 'bbs:bbs_detail' notice.content_object.topic.id %}"> {{notice.content_object.topic.title}}</a>
<font color="red">@了你</font>:
{% endifequal %}
{{ notice.content_object.pub_date|date:"Y-m-d H:i" }}
{% endfor %}
不知什么原因。在本地测试中好好的
一上传到服务器部署到 centos django+nginx+uwsgi 上就。不产生这个消息提醒了?
views.py
html
{% for notice in notice_list %}
{{notice.id}}
{{ notice.content_object.pub_date|timesince }}
{{notice.sender}}
{% ifequal notice.n_type 1 %}
<a href="{% url 'bbs:bbs_detail' notice.content_object.topic.id %}"> {{notice.content_object.topic.title}}</a>
{% else %}
<a href="{% url 'bbs:bbs_detail' notice.content_object.topic.id %}"> {{notice.content_object.topic.title}}</a>
<font color="red">@了你</font>:
{% endifequal %}
{{ notice.content_object.pub_date|date:"Y-m-d H:i" }}
{% endfor %}
不知什么原因。在本地测试中好好的
一上传到服务器部署到 centos django+nginx+uwsgi 上就。不产生这个消息提醒了?