Self-hostable uptime monitor and status page on Django: HTTP checks, Lighthouse audits, SEO crawls, and email and Discord alerts.
djangodockerhandcodedpythonself-hostedsqlitestatus-pageuptime-monitoringvite
1from django.contrib import admin
2
3from .models import Property, Check
4
5
6class PropertyAdmin(admin.ModelAdmin):
7 list_display = (
8 "id",
9 "url",
10 "user",
11 "total_checks",
12 "last_run_at",
13 "next_run_at",
14 "should_check",
15 )
16 list_filter = ("user__username",)
17 search_fields = (
18 "url",
19 "user__username",
20 )
21 ordering = ("user",)
22
23
24admin.site.register(Property, PropertyAdmin)
25
26
27class CheckAdmin(admin.ModelAdmin):
28 list_display = (
29 "property",
30 "status_code",
31 "response_time",
32 "created_at",
33 )
34 list_filter = ("property__url", "created_at")
35
36
37admin.site.register(Check, CheckAdmin)