From 57d7e8feee0d859b1e1ccdf3649a749cce21433b Mon Sep 17 00:00:00 2001 From: pierre geeraert Date: Thu, 11 Jun 2026 20:16:07 +0100 Subject: [PATCH] removing print function --- django_code/apps/cloudmanager/apps.py | 6 ++++-- django_code/apps/database_interaction/apps.py | 2 +- django_code/apps/stash_management/apps.py | 4 +++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/django_code/apps/cloudmanager/apps.py b/django_code/apps/cloudmanager/apps.py index 0b42e21..d7de10f 100644 --- a/django_code/apps/cloudmanager/apps.py +++ b/django_code/apps/cloudmanager/apps.py @@ -4,6 +4,8 @@ from django.shortcuts import render import os import psycopg2 from apps.cloudmanager.db_interaction import DB_generation,Check_server_supposed_XXX,Give_current_weekday,Give_current_hour +#from apps.database_interaction.apps import return_hello +from apps.stash_management.apps import return_hello def hello(request): list_schedule = ['schedule1','schedule2'] @@ -11,8 +13,8 @@ def hello(request): return render(request, 'cloudmanager/index.html', {'list_schedule':list_schedule,'list_servers_up':list_servers_up}) def print(request): - print("Im here") - return 0 + return HttpResponse(return_hello()) + def redirect(request): db_host = os.environ.get('DB_HOST') db_port = os.environ.get('DB_PORT') diff --git a/django_code/apps/database_interaction/apps.py b/django_code/apps/database_interaction/apps.py index 1af998a..7bd31d9 100644 --- a/django_code/apps/database_interaction/apps.py +++ b/django_code/apps/database_interaction/apps.py @@ -6,4 +6,4 @@ class DatabaseInteractionConfig(AppConfig): name = 'apps.database_interaction' def return_hello(): - return "hello" \ No newline at end of file + return "hellos" \ No newline at end of file diff --git a/django_code/apps/stash_management/apps.py b/django_code/apps/stash_management/apps.py index 9f90d24..491bbc9 100644 --- a/django_code/apps/stash_management/apps.py +++ b/django_code/apps/stash_management/apps.py @@ -33,8 +33,10 @@ proxies = { "https" : proxy_url } -destination_folder = "/stash/" +destination_folder = "/stash/" +def return_hello(): + return "hellostash" def hello(request): return HttpResponse('

Hello stash!

') def form(request):