django_pgschemas/apps.py
raw| 1 | from django.apps import AppConfig as BaseAppConfig |
| 2 | |
| 3 | |
| 4 | class AppConfig(BaseAppConfig): |
| 5 | name = "django_pgschemas" |
| 6 | |
| 7 | def ready(self) -> None: |
| 8 | from . import checks # noqa |
| 9 | from .checks import ( |
| 10 | ensure_tenant_dict, |
| 11 | ensure_public_schema, |
| 12 | ensure_default_schemas, |
| 13 | ensure_overall_schemas, |
| 14 | ensure_extra_search_paths, |
| 15 | ) |
| 16 | |
| 17 | ensure_tenant_dict() |
| 18 | ensure_public_schema() |
| 19 | ensure_default_schemas() |
| 20 | ensure_overall_schemas() |
| 21 | ensure_extra_search_paths() |