第一个版本

This commit is contained in:
2025-07-31 21:21:45 +08:00
commit 7792734fb0
31 changed files with 662 additions and 0 deletions

9
status/admin.py Normal file
View File

@@ -0,0 +1,9 @@
from django.contrib import admin
from .models import Service
class ServiceAdmin(admin.ModelAdmin):
list_display = ('name', 'status', 'description', 'ip_address', 'port', 'reliability', 'last_updated')
list_filter = ('status',)
search_fields = ('name', 'ip_address', 'description')
admin.site.register(Service, ServiceAdmin)