mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-09 12:21:57 -04:00
23 lines
541 B
Python
23 lines
541 B
Python
__package__ = 'archivebox.core'
|
|
|
|
from django.apps import AppConfig
|
|
|
|
import abx
|
|
|
|
|
|
class CoreConfig(AppConfig):
|
|
name = 'core'
|
|
|
|
def ready(self):
|
|
"""Register the archivebox.core.admin_site as the main django admin site"""
|
|
from core.admin_site import register_admin_site
|
|
register_admin_site()
|
|
|
|
|
|
|
|
|
|
@abx.hookimpl
|
|
def register_admin(admin_site):
|
|
"""Register the core.models views (Snapshot, ArchiveResult, Tag, etc.) with the admin site"""
|
|
from core.admin import register_admin
|
|
register_admin(admin_site)
|