diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index 077c94d818..8488aa4648 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py @@ -57,7 +57,11 @@ class ToasterSetting(models.Model): class ProjectManager(models.Manager): def create_project(self, name, release): - prj = self.model(name = name, bitbake_version = release.bitbake_version, release = release) + if release is not None: + prj = self.model(name = name, bitbake_version = release.bitbake_version, release = release) + else: + prj = self.model(name = name, bitbake_version = None, release = None) + prj.save() for defaultconf in ToasterSetting.objects.filter(name__startswith="DEFCONF_"): @@ -66,6 +70,8 @@ class ProjectManager(models.Manager): name = name, value = defaultconf.value) + if release is None: + return prj for rdl in release.releasedefaultlayer_set.all(): try: diff --git a/bitbake/lib/toaster/toastergui/templates/newproject.html b/bitbake/lib/toaster/toastergui/templates/newproject.html index ed3a279052..1159d717ae 100644 --- a/bitbake/lib/toaster/toastergui/templates/newproject.html +++ b/bitbake/lib/toaster/toastergui/templates/newproject.html @@ -11,60 +11,74 @@
- It looks like Toaster releases have not been configured properly. Contact the person who set up Toaster, and tell them about it. -
-- If you are the Toaster administrator, we are sorry: setting up Toaster is not easy. -
With a build project you configure and run your builds from Toaster.
+With an analysis project, the builds are configured and run by another tool + (something like Buildbot or Jenkins), and the project only collects the information about the + builds (packages, recipes, dependencies, logs, etc).
+You can read more on how to set up an analysis project + in the Toaster manual.
+If you create a build project, you will need to select a release, + which is the version of the build system you want to use to run your builds.
+