This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user