This commit is contained in:
@@ -4,6 +4,8 @@ from django.shortcuts import render
|
|||||||
import os
|
import os
|
||||||
import psycopg2
|
import psycopg2
|
||||||
from apps.cloudmanager.db_interaction import DB_generation,Check_server_supposed_XXX,Give_current_weekday,Give_current_hour
|
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):
|
def hello(request):
|
||||||
list_schedule = ['schedule1','schedule2']
|
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})
|
return render(request, 'cloudmanager/index.html', {'list_schedule':list_schedule,'list_servers_up':list_servers_up})
|
||||||
|
|
||||||
def print(request):
|
def print(request):
|
||||||
print("Im here")
|
return HttpResponse(return_hello())
|
||||||
return 0
|
|
||||||
def redirect(request):
|
def redirect(request):
|
||||||
db_host = os.environ.get('DB_HOST')
|
db_host = os.environ.get('DB_HOST')
|
||||||
db_port = os.environ.get('DB_PORT')
|
db_port = os.environ.get('DB_PORT')
|
||||||
|
|||||||
@@ -6,4 +6,4 @@ class DatabaseInteractionConfig(AppConfig):
|
|||||||
name = 'apps.database_interaction'
|
name = 'apps.database_interaction'
|
||||||
|
|
||||||
def return_hello():
|
def return_hello():
|
||||||
return "hello"
|
return "hellos"
|
||||||
@@ -33,8 +33,10 @@ proxies = {
|
|||||||
"https" : proxy_url
|
"https" : proxy_url
|
||||||
}
|
}
|
||||||
|
|
||||||
destination_folder = "/stash/"
|
destination_folder = "/stash/"
|
||||||
|
|
||||||
|
def return_hello():
|
||||||
|
return "hellostash"
|
||||||
def hello(request):
|
def hello(request):
|
||||||
return HttpResponse('<h1>Hello stash!</h1>')
|
return HttpResponse('<h1>Hello stash!</h1>')
|
||||||
def form(request):
|
def form(request):
|
||||||
|
|||||||
Reference in New Issue
Block a user