Django view doesn't output correctly

1 · Vicente G. Reyes · Oct. 22, 2019, 4:20 p.m.
Summary
Django view doesn't output correctly Oct 22 '19 Comments: 1 Answers: 0 0 I have a view which should output if the domain on the database is online or offline. def pingDomain(request, page): page_object = get_object_or_404(Table, page=page) try: subprocess.check_call(['ping', '-c', '1', page_object.page]) except subprocess.CalledProcessError: host_online = True else: host_online = False co...