From 2fa3a8357e6c95d9441f191a95368d42bbe68680 Mon Sep 17 00:00:00 2001 From: usmannasir Date: Wed, 25 Oct 2023 12:24:54 +0500 Subject: [PATCH] bug fix in urls --- baseTemplate/urls.py | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/baseTemplate/urls.py b/baseTemplate/urls.py index b4574ce36..509fbe6c5 100755 --- a/baseTemplate/urls.py +++ b/baseTemplate/urls.py @@ -2,17 +2,22 @@ from . import views urlpatterns = [ - path('', views.renderBase, name='index'), - path('getSystemStatus', views.getSystemStatus, name='getSystemInformation'), - path('getAdminStatus', views.getAdminStatus, name='getSystemInformation'), - path('getLoadAverage', views.getLoadAverage, name='getLoadAverage'), - path('versionManagment', views.versionManagement, name='versionManagement'), - path('design', views.design, name='design'), - path('getthemedata', views.getthemedata, name='getthemedata'), + url(r'^$', views.renderBase, name='index'), + url(r'^getSystemStatus$',views.getSystemStatus, name='getSystemInformation'), + url(r'^getAdminStatus',views.getAdminStatus, name='getSystemInformation'), + url(r'^getLoadAverage',views.getLoadAverage, name='getLoadAverage'), + url(r'^versionManagment',views.versionManagement, name='versionManagment'), + url(r'^design', views.design, name='design'), + url(r'^getthemedata', views.getthemedata, name='getthemedata'), + + #url(r'^upgrade',views.upgrade, name='upgrade'), + + url(r'^UpgradeStatus',views.upgradeStatus, name='UpgradeStatus'), + url(r'^upgradeVersion',views.upgradeVersion, name='upgradeVersion'), # Add this URL pattern for 'upgrade_cyberpanel' - path('upgrade_cyberpanel', views.upgrade_cyberpanel, name='upgrade_cyberpanel'), + url(r'upgrade_cyberpanel', views.upgrade_cyberpanel, name='upgrade_cyberpanel'), + url(r'UpgradeStatus', views.upgradeStatus, name='UpgradeStatus'), + url(r'upgradeVersion', views.upgradeVersion, name='upgradeVersion'), - path('UpgradeStatus', views.upgradeStatus, name='UpgradeStatus'), - path('upgradeVersion', views.upgradeVersion, name='upgradeVersion'), -] +] \ No newline at end of file