Add InvenTree/apps.py

This commit is contained in:
Oliver Walters 2021-03-11 17:18:57 +11:00
parent 5b68d82fa3
commit 1532a0c3a1
2 changed files with 13 additions and 0 deletions

View File

@ -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

View File

@ -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',