DEV Community

Vicente Antonio G. Reyes
Vicente Antonio G. Reyes

Posted on • Updated on

Ouput ping status on django template


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'):
          messages.error(request, 'Please

Top comments (0)