mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-01-03 01:15:57 +10:00
21 lines
622 B
Python
21 lines
622 B
Python
__package__ = 'archivebox.core'
|
|
|
|
from django.apps import AppConfig
|
|
|
|
|
|
class CoreConfig(AppConfig):
|
|
name = 'archivebox.core'
|
|
label = 'core'
|
|
|
|
def ready(self):
|
|
"""Register the archivebox.core.admin_site as the main django admin site"""
|
|
import sys
|
|
|
|
from archivebox.core.admin_site import register_admin_site
|
|
register_admin_site()
|
|
|
|
# Import models to register state machines with the registry
|
|
# Skip during makemigrations to avoid premature state machine access
|
|
if 'makemigrations' not in sys.argv:
|
|
from archivebox.core import models # noqa: F401
|