mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-18 17:14:39 -04:00
change plugins to have both a .register that runs at import and .ready that runs later
This commit is contained in:
parent
f1cca5bbba
commit
4df90fbb40
6 changed files with 76 additions and 12 deletions
|
@ -9,6 +9,7 @@ import django
|
|||
|
||||
from django.db.backends.sqlite3.base import Database as sqlite3 # type: ignore[import-type]
|
||||
from django.core.checks import Error, Tags
|
||||
from django.conf import settings
|
||||
|
||||
from pydantic_pkgr import BinProvider, PipProvider, BinName, PATHStr, BinProviderName, ProviderLookupDict, SemVer
|
||||
from plugantic.base_plugin import BasePlugin
|
||||
|
@ -139,4 +140,5 @@ class PipPlugin(BasePlugin):
|
|||
]
|
||||
|
||||
PLUGIN = PipPlugin()
|
||||
PLUGIN.register(settings)
|
||||
DJANGO_APP = PLUGIN.AppConfig
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue