loading...

Ouput ping status on django template

highcenburg profile image Vicente G. Reyes Updated on ・1 min read

Ouput ping status on django template

1

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

Discussion

markdown guide