diff options
author | 2022-01-21 21:55:19 +0000 | |
---|---|---|
committer | 2022-01-21 21:55:19 +0000 | |
commit | 721d313e9170661bd969fe8e737866b2560dae4a (patch) | |
tree | 44aa19b25573ada3bf2ef3cf16c9c279d7b05603 /pydis_site/apps/api/apps.py | |
parent | Implement voice mute + migration from voice mute -> voice ban (diff) | |
parent | Merge pull request #640 from Krish-bhardwaj/main (diff) |
Merge branch 'main' into voicemute
Diffstat (limited to 'pydis_site/apps/api/apps.py')
-rw-r--r-- | pydis_site/apps/api/apps.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pydis_site/apps/api/apps.py b/pydis_site/apps/api/apps.py index 76810b2e..18eda9e3 100644 --- a/pydis_site/apps/api/apps.py +++ b/pydis_site/apps/api/apps.py @@ -4,4 +4,12 @@ from django.apps import AppConfig class ApiConfig(AppConfig): """Django AppConfig for the API app.""" - name = 'api' + name = 'pydis_site.apps.api' + + def ready(self) -> None: + """ + Gets called as soon as the registry is fully populated. + + https://docs.djangoproject.com/en/3.2/ref/applications/#django.apps.AppConfig.ready + """ + import pydis_site.apps.api.signals # noqa: F401 |