This commit is contained in:
jeremygan2021
2026-03-11 23:07:35 +08:00
parent d28ecf98ea
commit 8b6773bb98

View File

@@ -7,7 +7,7 @@ django.setup()
from shop.models import ESP32Config
def populate():
# 检查数据库是否已有数据,如果有则跳过,避免每次构建都重置
# 检查数据库是否已有数据,如果有则跳过,避免每次构建都重置
if ESP32Config.objects.exists():
print("ESP32Config data already exists, skipping population.")
return