I have a model that contains domain names which I need to ping. I was able to create the view but I couldn't figure out how to output it on the template.
def index(request, page):
template = "home.html"
if request.method == 'POST':
csv_file = request.FILES['file']
if not csv_file.name.endswith('.csv'):
messages.error(request, 'Please
…
Top comments (0)