aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/apps.py
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2022-01-23 16:38:03 +0100
committerGravatar Leon Sandøy <[email protected]>2022-01-23 16:38:03 +0100
commit605d9a0266a9a967f051fa244bf1c2d31776c119 (patch)
treea9f3218e355c8f6a106ba2604334ce8a34823715 /pydis_site/apps/api/apps.py
parentLink icons belong close together. (diff)
parentMerge pull request #640 from Krish-bhardwaj/main (diff)
Merge branch 'main' into swfarnsworth/smarter-resources/merge-with-main
Diffstat (limited to 'pydis_site/apps/api/apps.py')
-rw-r--r--pydis_site/apps/api/apps.py10
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