Add export into front
This commit is contained in:
19
core/templates/admin/core/article/change_list.html
Normal file
19
core/templates/admin/core/article/change_list.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{% extends "admin/change_list.html" %}
|
||||
{% load admin_urls %}
|
||||
|
||||
{% block object-tools %}
|
||||
{{ block.super }}
|
||||
<div style="margin-top: 10px;">
|
||||
<form method="post" action="{% url 'admin:run_crawler' %}" style="display: inline-block;">
|
||||
{% csrf_token %}
|
||||
<label for="website-select">选择网站:</label>
|
||||
<select name="website_name" id="website-select" required>
|
||||
<option value="">-- 请选择网站 --</option>
|
||||
<option value="crawl_xinhua">新华网</option>
|
||||
<option value="crawl_dongfangyancao">东方烟草报</option>
|
||||
<option value="crawl_articles">通用爬虫</option>
|
||||
</select>
|
||||
<input type="submit" value="执行爬虫" class="default" style="margin-left: 10px;" />
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user