title: Django website not checking the links correctly
body: <p>I have a django website that contains a table with many servers details.
  In one of the columns in the table there is "ILO" IP of a server.</p>
  
  <p>I wanted the website to check if the "ILO" IP works in http request, and if it does, then it should show the link and if not, shows a text instead.</p>
  
  <p>Therefore, in the result, will be servers that has http link to ILO IP and some without.</p>
  
  <p>Under my main class in the views I created a function called "checkUrlAvailable" which I try to use in my index.html and check with if condition if I get true or false..</p>
  
  <p>for some reason I get the errorr-</p>
  
  <p>Could not parse the remainder: '(server.IP)' from 'checkUrlAvailable(server.IP)'</p>
  
  <p>Does anyone know why? </p>
  
  <p>index.html-</p>
  
  <pre><code>  &lt;tr&gt;
          &lt;th&gt;&lt;center&gt; #&lt;/center&gt;&lt;/th&gt;
          &lt;th width="100%"&gt;&lt;center&gt;  Server Name &lt;/center&gt;&lt;/th&gt;
          &lt;th&gt;&lt;center&gt;  Owner &lt;/center&gt;&lt;/th&gt;
          &lt;th&gt;&lt;center&gt;  Project &lt;/center&gt;&lt;/th&gt;
          &lt;th width="100%"&gt;&lt;center&gt;  Description &lt;/center&gt;&lt;/th&gt;
          &lt;th width="100%"&gt;&lt;center&gt;  IP Address &lt;/center&gt;&lt;/th&gt;
          &lt;th width="100%"&gt;&lt;center&gt; ILO &lt;/center&gt;&lt;/th&gt;
          &lt;th&gt;&lt;center&gt;  Rack &lt;/center&gt;&lt;/th&gt;
          &lt;th&gt;&lt;center&gt;  Status &lt;/center&gt;&lt;/th&gt;
          &lt;th&gt;&lt;center&gt;  Actions {{ response }}  &lt;/center&gt;&lt;/th&gt;
  
  
          &lt;/tr&gt;
          &lt;/thead&gt;
      &lt;tbody&gt;
  
                  {% for server in posts %}
  
  
          &lt;tr&gt;
            &lt;div class ="server"&gt;
              &lt;td&gt;&lt;/td&gt;
              &lt;td style='white-space: nowrap'&gt;&lt;center&gt;{{ server.ServerName }}&lt;/center&gt;&lt;/td&gt;
              &lt;td width="100%"&gt;&lt;center&gt;{{ server.Owner }}&lt;/center&gt;&lt;/td&gt;
              &lt;td style='white-space: nowrap'&gt;&lt;center&gt;{{ server.Project }}&lt;/center&gt;&lt;/td&gt;
              &lt;td style='white-space: nowrap'&gt;&lt;center&gt;{{ server.Description }}&lt;/center&gt;&lt;/td&gt;
              &lt;td width="100%"&gt;&lt;center&gt;{{ server.IP }}&lt;/center&gt;&lt;/td&gt;
              &lt;td style='white-space: nowrap'&gt;&lt;center&gt;
                  {% if checkUrlAvailable(server.ILO) is True %}
        &lt;a href="//{{ server.ServerName }}.ilo.lab.radcom.co.il"&gt; http://{{ server.ServerName }}.ilo.lab.radcom.co.il &lt;/a&gt;
              {% else %}
          http://{{ server.ServerName }}.ilo.lab.radcom.co.il
              {% endif %}
  
              &lt;td width="100%"&gt;&lt;center&gt;{{ server.Rack }}&lt;/center&gt;&lt;/td&gt;
              &lt;td width="100%"&gt;&lt;h4&gt;&lt;span class="badge badge-success"&gt;Online&lt;/span&gt;&lt;/h4&gt;&lt;/td&gt;&lt;/center&gt;
  </code></pre>
  
  <p>views.py -</p>
  
  <pre><code>class HomeView(TemplateView):
  
      template_name = 'serverlist.html'
  
      def checkUrlAvailable(url):
          resp = requests.head(url)
          if resp.status_code == 200:
              return True
          else:
              return False
  
  
      def get(self, request):
  
          form = HomeForm()
          query = request.GET.get("q")
          posts = serverlist.objects.all()
  
  
  
          forms = {}
  
          if query:
              posts = serverlist.objects.filter(Q(ServerName__icontains=query) | Q(Owner__icontains=query) | Q(Project__icontains=query) | Q(Description__icontains=query) | Q(IP__icontains=query) | Q(ILO__icontains=query) | Q(Rack__icontains=query))
          else:
              posts = serverlist.objects.all()
          for post in posts:
              forms[post.id] = HomeForm(instance=post)
          args = {'form' : form,'forms': forms, 'posts' : posts}
  
  
  
  
          return render(request, self.template_name,args)
  
      def post(self,request):
          form = HomeForm(request.POST)
          posts = serverlist.objects.all()
          forms = {}
  
  
          if form.is_valid(): # Checks if validation of the forms passed
              post = form.save(commit=False)
              post.save()
              messages.success(request,'{0} has been added successfully!'.format(post.ServerName))
  
              return redirect('serverlist')
          messages.error(request,'Servername is required, please refresh the page and try again.')
          for post in posts:
              forms[post.id] = HomeForm(instance=post)
          args = {'form' : form, 'forms': forms, 'posts' : posts}
  
          return render(request, self.template_name,args)
  </code></pre>