diff --git a/websiteFunctions/website.py b/websiteFunctions/website.py index 0f534ad8e..9edb94b3e 100755 --- a/websiteFunctions/website.py +++ b/websiteFunctions/website.py @@ -83,14 +83,6 @@ class WebsiteManager: "name": "wp-manager", "IP": ACLManager.GetServerIP() } - test_domain_data = { - "name": "test-domain", - "IP": ACLManager.GetServerIP(), - } - - import requests - response = requests.post(url, data=json.dumps(test_domain_data)) - test_domain_status = response.json()['status'] import requests response = requests.post(url, data=json.dumps(data)) @@ -120,6 +112,17 @@ class WebsiteManager: Plugins = wpplugins.objects.filter(owner=userobj) rnpss = randomPassword.generate_pass(10) + ## + + test_domain_data = { + "name": "test-domain", + "IP": ACLManager.GetServerIP(), + } + + import requests + response = requests.post(url, data=json.dumps(test_domain_data)) + test_domain_status = response.json()['status'] + Data = {'packageList': packagesName, "owernList": adminNames, 'WPVersions': FinalVersions, 'Plugins': Plugins, 'Randam_String': rnpss.lower(), 'test_domain_data': test_domain_status} proc = httpProc(request, 'websiteFunctions/WPCreate.html',