2024-04-25 10:56:22 +00:00
|
|
|
__package__ = 'archivebox.core'
|
|
|
|
|
2019-04-02 20:36:41 +00:00
|
|
|
from django.apps import AppConfig
|
|
|
|
|
|
|
|
|
|
|
|
class CoreConfig(AppConfig):
|
|
|
|
name = 'core'
|
2024-01-24 18:18:02 +00:00
|
|
|
|
|
|
|
def ready(self):
|
2024-05-06 18:06:42 +00:00
|
|
|
# register our custom admin as the primary django admin
|
|
|
|
from django.contrib import admin
|
|
|
|
from django.contrib.admin import sites
|
|
|
|
from core.admin import archivebox_admin
|
|
|
|
|
|
|
|
admin.site = archivebox_admin
|
|
|
|
sites.site = archivebox_admin
|
|
|
|
|
|
|
|
|
|
|
|
# register signal handlers
|
2024-01-24 18:18:02 +00:00
|
|
|
from .auth import register_signals
|
|
|
|
|
|
|
|
register_signals()
|
2024-05-06 18:06:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# from django.contrib.admin.apps import AdminConfig
|
|
|
|
# class CoreAdminConfig(AdminConfig):
|
|
|
|
# default_site = "core.admin.get_admin_site"
|