diff options
-rw-r--r-- | bitbake/lib/bb/ui/buildinfohelper.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py index 87e03e7c61..04ce23afcb 100644 --- a/bitbake/lib/bb/ui/buildinfohelper.py +++ b/bitbake/lib/bb/ui/buildinfohelper.py | |||
@@ -24,6 +24,7 @@ import os | |||
24 | os.environ["DJANGO_SETTINGS_MODULE"] = "toaster.toastermain.settings" | 24 | os.environ["DJANGO_SETTINGS_MODULE"] = "toaster.toastermain.settings" |
25 | 25 | ||
26 | 26 | ||
27 | import django | ||
27 | from django.utils import timezone | 28 | from django.utils import timezone |
28 | 29 | ||
29 | 30 | ||
@@ -33,6 +34,8 @@ def _configure_toaster(): | |||
33 | sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), 'toaster')) | 34 | sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), 'toaster')) |
34 | _configure_toaster() | 35 | _configure_toaster() |
35 | 36 | ||
37 | django.setup() | ||
38 | |||
36 | from orm.models import Build, Task, Recipe, Layer_Version, Layer, Target, LogMessage, HelpText | 39 | from orm.models import Build, Task, Recipe, Layer_Version, Layer, Target, LogMessage, HelpText |
37 | from orm.models import Target_Image_File, BuildArtifact | 40 | from orm.models import Target_Image_File, BuildArtifact |
38 | from orm.models import Variable, VariableHistory | 41 | from orm.models import Variable, VariableHistory |