test working

This commit is contained in:
2026-08-05 14:34:06 +01:00
parent 12078b1439
commit 54fd66196e
2 changed files with 38 additions and 3 deletions
+12 -1
View File
@@ -1,8 +1,19 @@
import requests
from django.conf import settings
import sys
def full_testing(url_website):
status = "unknown"
#step 1 : test without VPN
status = test_website(url_website)
#step 2 : test with VPN
#if status != 200:
# status = test_website(url_website,bool_proxy=True)
return status
def test_website(url_website,bool_proxy=False):