mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-09-14 11:06:13 +05:00
Some checks are pending
CodeQL / Analyze (${{ matrix.language }}) (none, python) (push) Waiting to run
Build Debian package / build (push) Waiting to run
Deploy static content to Pages / deploy (push) Waiting to run
Build Homebrew package / build (push) Waiting to run
Build GitHub Pages website / build (push) Waiting to run
Build GitHub Pages website / deploy (push) Blocked by required conditions
Run linters / lint (push) Waiting to run
Build Pip package / build (push) Waiting to run
Parallel Tests / Discover test files (push) Waiting to run
Parallel Tests / ${{ matrix.test.name }} (push) Blocked by required conditions
Run tests / python_tests (ubuntu-22.04, 3.13) (push) Waiting to run
Run tests / docker_tests (push) Waiting to run
25 lines
705 B
Python
25 lines
705 B
Python
__package__ = 'archivebox.machine'
|
|
|
|
from django.apps import AppConfig
|
|
|
|
|
|
class MachineConfig(AppConfig):
|
|
default_auto_field = 'django.db.models.BigAutoField'
|
|
|
|
name = 'archivebox.machine'
|
|
label = 'machine' # Explicit label for migrations
|
|
verbose_name = 'Machine Info'
|
|
|
|
def ready(self):
|
|
"""Import models to register state machines with the registry"""
|
|
import sys
|
|
|
|
# Skip during makemigrations to avoid premature state machine access
|
|
if 'makemigrations' not in sys.argv:
|
|
from archivebox.machine import models # noqa: F401
|
|
|
|
|
|
def register_admin(admin_site):
|
|
from archivebox.machine.admin import register_admin
|
|
register_admin(admin_site)
|