add the view
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s

This commit is contained in:
pierre geeraert
2026-09-10 22:22:10 +01:00
parent e9bf6ba7b5
commit 3b28145d0a
3 changed files with 23 additions and 5 deletions
+5 -1
View File
@@ -4,7 +4,7 @@ from django.shortcuts import render
# IMPORT AT THE TOP HERE: This is completely safe!
from .models import Deployment_Data,Schedule_Week_Data
from .db_interaction import DB_generation,Check_server_supposed_XXX,Give_current_weekday,Give_current_hour
from .utils import import_namespace
from .utils import import_namespace,retrieve_and_apply
def coucou(request):
# 1. Prepare the data inside the function
@@ -36,6 +36,10 @@ def import_namespace_view(request):
return HttpResponse('<h1>Namespace imported!</h1>')
def retrieve_and_apply_view(request):
output = retrieve_and_apply()
return HttpResponse('<h1>'+output+'</h1>')
def redirect(request):
db_host = os.environ.get('DB_HOST')
db_port = os.environ.get('DB_PORT')