feat: delete project storage on database reset with safe FS cleanup

This commit is contained in:
Арсентьев Александр
2026-09-30 13:34:00 +03:00
parent 8302250325
commit 5222cb2b3c
7 changed files with 1008 additions and 8 deletions
+5 -1
View File
@@ -19,7 +19,11 @@
{% if request.query_params.get('reset') %}
<div class="alert alert-success alert-dismissible fade show" role="alert">
Все данные проекта успешно удалены.
{% if request.query_params.get('storage_error') %}
Данные проекта удалены, но физическое хранилище не удалось очистить. Требуется ручная очистка.
{% else %}
Данные удалены.
{% endif %}
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Закрыть"></button>
</div>
{% endif %}