add stash listing
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6m32s

This commit is contained in:
pierre geeraert
2025-12-02 21:24:05 +00:00
parent f4379b07ca
commit 6c7b9a4ad8
7 changed files with 11094 additions and 3 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ TEMPLATES = [
{ {
'BACKEND': 'django.template.backends.django.DjangoTemplates', 'BACKEND': 'django.template.backends.django.DjangoTemplates',
#'DIRS': ["/code/django_code/templates","/code/django_code/dashboard/templates/"], #'DIRS': ["/code/django_code/templates","/code/django_code/dashboard/templates/"],
'DIRS': [BASE_DIR / "templates","django_code/dashboard/templates/"], 'DIRS': [BASE_DIR / "templates","django_code/dashboard/templates/","django_code/stash_management/templates"],
'APP_DIRS': True, 'APP_DIRS': True,
'OPTIONS': { 'OPTIONS': {
'context_processors': [ 'context_processors': [
+2
View File
@@ -24,6 +24,7 @@ from dashboard import apps as dashboardapp
from dashboard import views as dashboardview from dashboard import views as dashboardview
from kubernetes_connection import apps as kubernetes_connection from kubernetes_connection import apps as kubernetes_connection
from stash_management import apps as stashapp from stash_management import apps as stashapp
from stash_management import views as stashview
urlpatterns = [ urlpatterns = [
# path('admin/', admin.site.urls), # path('admin/', admin.site.urls),
@@ -59,6 +60,7 @@ urlpatterns = [
path('kubernetes_connection/scale_down/<str:namespace_name>/<str:deploy_name>', kubernetes_connection.scale_down), path('kubernetes_connection/scale_down/<str:namespace_name>/<str:deploy_name>', kubernetes_connection.scale_down),
################## kubernetes_connection##### ################## kubernetes_connection#####
path('stash/', stashview.home),
path('stash/hello/', stashapp.hello), path('stash/hello/', stashapp.hello),
path('stash/form/', stashapp.form), path('stash/form/', stashapp.form),
path('stash/fapello/', stashapp.fapello), path('stash/fapello/', stashapp.fapello),
+1 -1
View File
@@ -65,7 +65,7 @@ def increment_and_download(minimum_increment,maximum_increment,url,url_suffix,na
print("\n downloading for "+name+" "+url+"XXX"+url_suffix) print("\n downloading for "+name+" "+url+"XXX"+url_suffix)
for increment in range(minimum_increment,maximum_increment): for increment in range(minimum_increment,maximum_increment):
print("increment : "+str(increment)+"/"+str(maximum_increment) print("increment : "+str(increment)+"/"+str(maximum_increment))
if len(str(increment)) == 3: if len(str(increment)) == 3:
increment_generated ='0' + str(increment) increment_generated ='0' + str(increment)
elif len(str(increment)) == 2: elif len(str(increment)) == 2:
File diff suppressed because it is too large Load Diff
+5 -1
View File
@@ -5,4 +5,8 @@ from django.http import HttpResponse
from django.shortcuts import render from django.shortcuts import render
def hello(request): def hello(request):
return HttpResponse('<h1>Hello Django!</h1>') return HttpResponse('<h1>Hello stash!</h1>')
def home(request):
return render(request, 'listing.html')