92 lines
4.1 KiB
Python
92 lines
4.1 KiB
Python
"""
|
|
URL configuration for django_code project.
|
|
|
|
The `urlpatterns` list routes URLs to views. For more information please see:
|
|
https://docs.djangoproject.com/en/4.2/topics/http/urls/
|
|
Examples:
|
|
Function views
|
|
1. Add an import: from my_app import views
|
|
2. Add a URL to urlpatterns: path('', views.home, name='home')
|
|
Class-based views
|
|
1. Add an import: from other_app.views import Home
|
|
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
|
|
Including another URLconf
|
|
1. Import the include() function: from django.urls import include, path
|
|
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
|
|
"""
|
|
from django.contrib import admin
|
|
from django.urls import path
|
|
#from docker_connection import views, apps
|
|
from random_simpsons import apps as random_simpsons
|
|
from paperless_django import apps as paperless_django
|
|
from onenote import apps as onenote
|
|
from dashboard import apps as dashboardapp
|
|
from dashboard import views as dashboardview
|
|
from kubernetes_connection import apps as kubernetes_connection
|
|
from stash_management import apps as stashapp
|
|
from stash_management import views as stashview
|
|
from website_redirection import apps as website_redirectionapp
|
|
|
|
urlpatterns = [
|
|
# path('admin/', admin.site.urls),
|
|
|
|
################### Simpsons ###################
|
|
path('hello/', random_simpsons.hello),
|
|
path('simpsons/', random_simpsons.simpsons),
|
|
path('download_file/', random_simpsons.download_file),
|
|
|
|
################### Redirect ###################
|
|
path('redirect/hello/', website_redirectionapp.hello),
|
|
path('redirect/set/', website_redirectionapp.redirect),
|
|
path('redirect/get/<str:key>', website_redirectionapp.display_key),
|
|
path('redirect/go/<str:key>', website_redirectionapp.redirect_to_key),
|
|
path('redirect/redirect-form/', website_redirectionapp.redirect_process, name='submit_form'),
|
|
path('redirect/clearkey/', website_redirectionapp.clearkey_process, name='submit_form'),
|
|
|
|
|
|
################### paperless ###################
|
|
path('paperless/hello/', paperless_django.hello),
|
|
# path('simpsons/', random_simpsons.simpsons),
|
|
|
|
################### onenote ###################
|
|
path('onenote/hello/', onenote.hello),
|
|
|
|
################### onenote ###################
|
|
path('dashboard/hello/', dashboardapp.hello),
|
|
path('dashboard/view/about', dashboardview.about),
|
|
path('dashboard/view/home', dashboardview.home),
|
|
path('dashboard/view/success', dashboardview.success),
|
|
path('dashboard/scale_up/<str:namespace_name>/<str:deploy_name>', dashboardview.scale_up),
|
|
path('dashboard/scale_down/<str:namespace_name>/<str:deploy_name>', dashboardview.scale_down),
|
|
|
|
|
|
|
|
################## kubernetes_connection#####
|
|
path('kubernetes_connection/hello/', kubernetes_connection.hello),
|
|
path('kubernetes_connection/nodes/', kubernetes_connection.nodes),
|
|
path('kubernetes_connection/backup_job/', kubernetes_connection.backup_job),
|
|
path('kubernetes_connection/backup_job_yaml/', kubernetes_connection.backup_job_yaml),
|
|
path('kubernetes_connection/scale_up/<str:namespace_name>/<str:deploy_name>', kubernetes_connection.scale_up),
|
|
path('kubernetes_connection/scale_down/<str:namespace_name>/<str:deploy_name>', kubernetes_connection.scale_down),
|
|
|
|
################## stash#####
|
|
path('stash/', stashview.home),
|
|
path('stash/hello/', stashapp.hello),
|
|
path('stash/form/', stashapp.form),
|
|
path('stash/incremental/', stashapp.incremental),
|
|
path('stash/album/', stashapp.album),
|
|
path('stash/album-form/', stashapp.album_form, name='submit_form'),
|
|
path('stash/simple/', stashapp.simple),
|
|
path('stash/simple-form/', stashapp.simple_form, name='submit_form'),
|
|
path('stash/submit-form/', stashapp.handle_survey_form, name='submit_form'),
|
|
path('stash/incremental-form/', stashapp.incremental_form, name='submit_form'),
|
|
|
|
# path('bookstack/', docker_connection.apps.hello),
|
|
# path('test/', docker_connection.apps.http_call_test),
|
|
# path('proxmox/', docker_connection.apps.proxmox),
|
|
# path('simpsons/', random_simpsons.hello),
|
|
# path('docker/<str:action>/<str:id_docker>', docker_connection.apps.docker_call),
|
|
|
|
|
|
]
|