mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-04 23:07:56 +10:00
migrate plugin loading process to new pluggy-powered system based on djp
This commit is contained in:
@@ -245,5 +245,17 @@ class ConfigPlugin(BasePlugin):
|
||||
|
||||
|
||||
PLUGIN = ConfigPlugin()
|
||||
PLUGIN.register(settings)
|
||||
DJANGO_APP = PLUGIN.AppConfig
|
||||
|
||||
|
||||
|
||||
# register django apps
|
||||
@archivebox.plugin.hookimpl
|
||||
def get_INSTALLED_APPS():
|
||||
return [DJANGO_APP.name]
|
||||
|
||||
# register configs
|
||||
@archivebox.plugin.hookimpl
|
||||
def register_CONFIG():
|
||||
return PLUGIN.HOOKS_BY_TYPE['CONFIG'].values()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user