Files
rengine/startScan/views.py
T

23 lines
873 B
Python

from django.shortcuts import render, get_object_or_404
from django.contrib import messages
from django import http
from django.urls import reverse
from .models import ScanHistory, ScannedSubdomains
def index(request):
return render(request, 'startScan/index.html')
def scan_history(request):
scan_history = ScanHistory.objects
context = {'scan_history_active': 'true', "scan_history":scan_history}
return render(request, 'startScan/history.html', context)
def detail_scan(request, id):
subdomain_details = ScannedSubdomains.objects.filter(scan_history__id=id)
context = {'scan_history_active': 'true', 'subdomain':subdomain_details}
return render(request, 'startScan/detail_scan.html', context)
def start_scan_ui(request, id):
context = {'scan_history_active': 'true'}
return render(request, 'startScan/start_scan_ui.html', context)