#add message
This commit is contained in:
parent
6333a288dc
commit
cc45f1b3a6
|
@ -14,4 +14,5 @@ urlpatterns = [
|
||||||
path('backstage/weibo/update/',views.backstage_weibo_update,name='backstage-weibo_update'),
|
path('backstage/weibo/update/',views.backstage_weibo_update,name='backstage-weibo_update'),
|
||||||
path('backstage/toutiao/update/',views.backstage_toutiao_update,name='backstage-toutiao_update'),
|
path('backstage/toutiao/update/',views.backstage_toutiao_update,name='backstage-toutiao_update'),
|
||||||
path('backstage/qita/update/',views.backstage_qita_update,name='backstage-qita_update'),
|
path('backstage/qita/update/',views.backstage_qita_update,name='backstage-qita_update'),
|
||||||
|
path('backstage/add/unqualified/media/',views.add_unqualified_media,name='backstage-add-unqualified-media'),
|
||||||
]
|
]
|
||||||
|
|
|
@ -375,3 +375,6 @@ def backstage_qita_update(request):
|
||||||
data_results.append(x)
|
data_results.append(x)
|
||||||
print(data_results)
|
print(data_results)
|
||||||
return render(request, 'backstage/backstage-toutiao-update.html', {'data_results': data_results})
|
return render(request, 'backstage/backstage-toutiao-update.html', {'data_results': data_results})
|
||||||
|
|
||||||
|
def add_unqualified_media(request):
|
||||||
|
return render(request)
|
|
@ -214,6 +214,10 @@
|
||||||
<a {% if url_name == 'backstage-qita_update' %} class="active" {% endif %}
|
<a {% if url_name == 'backstage-qita_update' %} class="active" {% endif %}
|
||||||
href="{% url 'backstage-qita_update' %}">其他更新</a>
|
href="{% url 'backstage-qita_update' %}">其他更新</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a {% if url_name == 'backstage-add-unqualified-media' %} class="active" {% endif %}
|
||||||
|
href="{% url 'backstage-add-unqualified-media' %}">添加不合格记录</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -26,7 +26,7 @@ import pandas as pd
|
||||||
def new_media_public_opinion_weixin(request):
|
def new_media_public_opinion_weixin(request):
|
||||||
weixin = Weixin.objects.all()
|
weixin = Weixin.objects.all()
|
||||||
group = Group.objects.all()
|
group = Group.objects.all()
|
||||||
weixin_data = Weixin_data.objects.all().order_by('-comment')
|
weixin_data = Weixin_data.objects.all()
|
||||||
res = []
|
res = []
|
||||||
for w in weixin_data:
|
for w in weixin_data:
|
||||||
o = dict()
|
o = dict()
|
||||||
|
|
Loading…
Reference in New Issue