update : 01.07.2025 17:40:32,25
This commit is contained in:
parent
303f1af613
commit
ab7bc790bf
@ -434,14 +434,11 @@
|
||||
<div class="col-sm-4">
|
||||
<select id="id_wlocationsystem" name="wlocationsystem" class="form-control select2"
|
||||
style="width: 100%;">
|
||||
<option {% if wlocationsystem == "Не используется" %} selected {% endif %}>Не
|
||||
используется
|
||||
</option>
|
||||
<option {% if wlocationsystem == "Внешняя ссылка" %} selected {% endif %}>
|
||||
Внешняя ссылка
|
||||
</option>
|
||||
<option {% if wlocationsystem == "Не используется" %} selected {% endif %}>Не используется </option>
|
||||
<option {% if wlocationsystem == "Внешняя ссылка" %} selected {% endif %}>Внешняя ссылка</option>
|
||||
<option {% if wlocationsystem == "RTLS" %} selected {% endif %}>RTLS</option>
|
||||
<option {% if wlocationsystem == "Radiusip" %} selected {% endif %}>Radiusip
|
||||
<option {% if wlocationsystem == "HETONIS" %} selected {% endif %}>Hetonis
|
||||
</option>
|
||||
|
||||
</select>
|
||||
|
||||
34
start.py
34
start.py
@ -268,7 +268,34 @@ def rer_eq():
|
||||
#.objects.filter(name=name).first()
|
||||
|
||||
|
||||
def test_hetonis():
|
||||
try:
|
||||
data=dict()
|
||||
data.update(username='melnikov.r')
|
||||
data.update(password='fCx3J6VT')
|
||||
|
||||
session = requests.Session()
|
||||
Headers = { "accept" : "application/json","Content-type":"application/json" }
|
||||
response=session.post("http://10.91.15.2:8081/hxzkuwb/login/",data=json.dumps(data),headers = Headers, verify=False)
|
||||
print(response.text)
|
||||
print(session.cookies.get_dict())
|
||||
print('************************************************')
|
||||
Headers = { "accept" : "application/json","Content-type":"application/json" }
|
||||
response=session.post("http://10.91.15.2:8081/hxzkuwb/getGPSCesium/",data=json.dumps(data),headers = Headers, verify=False)
|
||||
print(response.text)
|
||||
|
||||
|
||||
except Exception as err:
|
||||
print(traceback.format_exc())
|
||||
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
#import glob
|
||||
#import os
|
||||
#for filename in glob.glob('*.py'):
|
||||
# print(os.stat(filename).st_ino, filename)
|
||||
#test_sysinfo()
|
||||
#print('-------------------------------------------------')
|
||||
#print_windows_version()
|
||||
@ -278,9 +305,4 @@ if __name__ == "__main__":
|
||||
#test_hdd()
|
||||
#print(settings.BASE_DIR)
|
||||
#print(os.stat(settings.BASE_DIR+'/manage.py').st_ino, 'manage.py')
|
||||
import glob
|
||||
import os
|
||||
for filename in glob.glob('*.py'):
|
||||
print(os.stat(filename).st_ino, filename)
|
||||
#rer_eq()
|
||||
#error_eq()
|
||||
test_hetonis()
|
||||
Loading…
x
Reference in New Issue
Block a user