forked from ietf-tools/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapps.py
More file actions
19 lines (14 loc) · 641 Bytes
/
apps.py
File metadata and controls
19 lines (14 loc) · 641 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from django.apps import AppConfig
from . import populate_api_list
class ApiConfig(AppConfig):
name = "ietf.api"
def ready(self):
"""Hook to do init after the app registry is fully populated
Importing models or accessing the app registry is ok here, but do not
interact with the database. See
https://docs.djangoproject.com/en/4.2/ref/applications/#django.apps.AppConfig.ready
"""
# Populate our API list now that the app registry is set up
populate_api_list()
# Import drf-spectacular extensions
import ietf.api.schema # pyflakes: ignore