Browse Source

Update apps.py to use lazy import

pull/1349/head
Hironsan 3 years ago
parent
commit
89686d4ee7
1 changed files with 3 additions and 1 deletions
  1. 4
      backend/api/apps.py

4
backend/api/apps.py

@ -1,3 +1,5 @@
import importlib
from django.apps import AppConfig
@ -6,4 +8,4 @@ class ApiConfig(AppConfig):
verbose_name = 'Api'
def ready(self):
import api.signals
importlib.import_module>('api.signals')
Loading…
Cancel
Save