{% extends "base.html" %} {% block title %}数据管理 - 常德空气质量分析平台{% endblock %} {% block page_title %}数据管理{% endblock %} {% block content %} {% if result %}
导入完成!共处理 {{ result.file_count }} 个CSV文件,新增 {{ result.created_count }} 条,更新 {{ result.updated_count }} 条。
{% endif %}

数据库概况

数据库记录总数:{{ total }}
检测到CSV文件:{{ file_count }}

导入CSV数据

从项目目录中扫描所有AQI数据CSV文件并导入到数据库。支持增量更新或清空后重新导入。

{% csrf_token %}
{% if sample_files %}

已检测到的CSV文件(部分)

{% for f in sample_files %} {{ f }} {% endfor %}
{% endif %} {% endblock %}