mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-24 21:23:22 +00:00
20 lines
440 B
Python
20 lines
440 B
Python
__package__ = 'archivebox.core'
|
|
|
|
from django.apps import AppConfig
|
|
|
|
import archivebox
|
|
|
|
|
|
class CoreConfig(AppConfig):
|
|
name = 'core'
|
|
|
|
def ready(self):
|
|
"""Register the archivebox.core.admin_site as the main django admin site"""
|
|
from django.conf import settings
|
|
archivebox.pm.hook.ready(settings=settings)
|
|
|
|
from core.admin_site import register_admin_site
|
|
register_admin_site()
|
|
|
|
|
|
|