diff --git a/InvenTree/InvenTree/apps.py b/InvenTree/InvenTree/apps.py new file mode 100644 index 0000000000..a13c5b8d31 --- /dev/null +++ b/InvenTree/InvenTree/apps.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- + +from django.apps import AppConfig + + +class InvenTreeConfig(AppConfig): + name = 'InvenTree' + + def ready(self): + + print("Starting background tasks") + pass diff --git a/InvenTree/InvenTree/settings.py b/InvenTree/InvenTree/settings.py index 0a72dce33e..323eade258 100644 --- a/InvenTree/InvenTree/settings.py +++ b/InvenTree/InvenTree/settings.py @@ -188,6 +188,7 @@ INSTALLED_APPS = [ 'build.apps.BuildConfig', 'common.apps.CommonConfig', 'company.apps.CompanyConfig', + 'InvenTree.apps.InvenTreeConfig', 'label.apps.LabelConfig', 'order.apps.OrderConfig', 'part.apps.PartConfig',