Download apps/automation/apps.py from jun2024/fc: direct link, hf CLI and curl.
- Browser
- Download file 513 Bytes
-
https://huggingface.co/spaces/jun2024/fc/resolve/main/apps/automation/apps.py
- Command line
-
hf download hf://spaces/jun2024/fc/apps/automation/apps.py
-
curl -L -o apps.py https://huggingface.co/spaces/jun2024/fc/resolve/main/apps/automation/apps.py
513 Bytes
| from django.apps import AppConfig | |
| from django.utils.translation import gettext_lazy as _ | |
| class AutomationConfig(AppConfig): | |
| default_auto_field = "django.db.models.BigAutoField" | |
| name = "apps.automation" | |
| verbose_name = _("自动化工具") | |
| def ready(self) -> None: | |
| """应用启动时的配置""" | |
| from django.contrib import admin | |
| from .admin.scraper.scraper_admin_site import customize_admin_index | |
| customize_admin_index(admin.site) | |
| from . import signals | |