[Feature] 添加signals 解耦代码

This commit is contained in:
ibuler
2017-12-12 12:19:45 +08:00
parent cbc000696e
commit 99b4c66b5e
41 changed files with 420 additions and 498 deletions

View File

@@ -5,3 +5,8 @@ from django.apps import AppConfig
class AssetsConfig(AppConfig):
name = 'assets'
def ready(self):
from .signals import on_app_ready
on_app_ready.send(self.__class__)
super().ready()