mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-25 12:14:32 -04:00
minor formatting and fixes
This commit is contained in:
parent
d50aed9185
commit
ba6c1fd69b
5 changed files with 9 additions and 11 deletions
archivebox/plugantic
|
@ -20,7 +20,7 @@ class BaseHook(BaseModel):
|
|||
it modifies django.conf.settings in-place to add changes corresponding to its HookType.
|
||||
e.g. for a HookType.CONFIG, the Hook.register() function places the hook in settings.CONFIG (and settings.HOOKS)
|
||||
An example of an impure Hook would be a CHECK that modifies settings but also calls django.core.checks.register(check).
|
||||
|
||||
In practice any object that subclasses BaseHook and provides a .register() function can behave as a Hook.
|
||||
|
||||
setup_django() -> imports all settings.INSTALLED_APPS...
|
||||
# django imports AppConfig, models, migrations, admins, etc. for all installed apps
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue