diff --git a/backend/src/zango/apps/shared/tenancy/management/commands/export_fixture.py b/backend/src/zango/apps/shared/tenancy/management/commands/export_fixture.py index 2510ee00..5bd32635 100644 --- a/backend/src/zango/apps/shared/tenancy/management/commands/export_fixture.py +++ b/backend/src/zango/apps/shared/tenancy/management/commands/export_fixture.py @@ -99,6 +99,11 @@ def handle(self, *app_labels, **options): w = Workspace(tenant_obj, None, True) w.ready() models_list = self.get_dynamic_config_models(w) + if len(models_list)<1: + self.stdout.write( + "No fixtures found." + ) + return elif self.framework_fixtures: models_list = ["appauth.UserRoleModel"] diff --git a/backend/src/zango/cli/start_project.py b/backend/src/zango/cli/start_project.py index 5e5167cd..f092c9a1 100644 --- a/backend/src/zango/cli/start_project.py +++ b/backend/src/zango/cli/start_project.py @@ -98,7 +98,7 @@ def create_project( project_template_path = os.path.join( os.path.dirname(zango.cli.__file__), "project_template" ) - command = f"{command} --template {str(project_template_path)}" + command = f"{command} --template '{str(project_template_path)}'" subprocess.run(command, shell=True, check=True) env_keys = {