mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 07:04:27 -04:00
migrate plugin loading process to new pluggy-powered system based on djp
This commit is contained in:
parent
efd341d8ad
commit
8ed3155ec5
28 changed files with 690 additions and 321 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue