Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
883e028cae | ||
|
|
2f4b93d11c |
@@ -4,16 +4,12 @@ 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']
|
||||||
list_servers_up = [['wiki', 'wikijs', 2], ['book', 'bookstack-db', 1]]
|
list_servers_up = [['wiki', 'wikijs', 2], ['book', 'bookstack-db', 1]]
|
||||||
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):
|
|
||||||
return HttpResponse(return_hello())
|
|
||||||
|
|
||||||
def redirect(request):
|
def redirect(request):
|
||||||
db_host = os.environ.get('DB_HOST')
|
db_host = os.environ.get('DB_HOST')
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
from django.contrib import admin
|
|
||||||
|
|
||||||
# Register your models here.
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
from django.apps import AppConfig
|
|
||||||
|
|
||||||
|
|
||||||
class DatabaseInteractionConfig(AppConfig):
|
|
||||||
default_auto_field = 'django.db.models.BigAutoField'
|
|
||||||
name = 'apps.database_interaction'
|
|
||||||
|
|
||||||
def return_hello():
|
|
||||||
return "hellos"
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
from django.db import models
|
|
||||||
|
|
||||||
# Create your models here.
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
from django.test import TestCase
|
|
||||||
|
|
||||||
# Create your tests here.
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
from django.shortcuts import render
|
|
||||||
|
|
||||||
# Create your views here.
|
|
||||||
@@ -35,8 +35,6 @@ proxies = {
|
|||||||
|
|
||||||
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):
|
||||||
|
|||||||
@@ -41,7 +41,6 @@ INSTALLED_APPS = [
|
|||||||
'bootstrap5',
|
'bootstrap5',
|
||||||
'django_hosts',
|
'django_hosts',
|
||||||
'apps.cloudmanager',
|
'apps.cloudmanager',
|
||||||
'apps.database_interaction',
|
|
||||||
]
|
]
|
||||||
|
|
||||||
MIDDLEWARE = [
|
MIDDLEWARE = [
|
||||||
|
|||||||
Reference in New Issue
Block a user