From d2cffab3ebbfcf8562a59fd4fefd6e5d86ec75aa Mon Sep 17 00:00:00 2001 From: yuangyaa Date: Mon, 27 Oct 2025 02:39:04 +0800 Subject: [PATCH] fix bug --- crawler/apps.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crawler/apps.py b/crawler/apps.py index 88478dd..3a0b852 100644 --- a/crawler/apps.py +++ b/crawler/apps.py @@ -4,3 +4,9 @@ from django.apps import AppConfig class CrawlerConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'crawler' + + def ready(self): + from django.contrib import admin + admin.site.site_header = '廉政教育资料爬虫系统' + admin.site.site_title = '廉政教育资料爬虫系统' + admin.site.index_title = '廉政教育资料爬虫系统' \ No newline at end of file