title: Some wrongs when i want to achieve search function in Django
body: <p>Here's my <code>models.py</code> (the models are being pulled from a MySQL database by django):</p>
  
  <pre><code>from __future__ import unicode_literals
  
  from django.db import models
  
  
  class Cyshici(models.Model):
      id = models.IntegerField(db_column='ID', primary_key=True)  # Field name made lowercase.
      field_1 = models.CharField(db_column='\u5b57\u6bb51', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_2 = models.CharField(db_column='\u5b57\u6bb52', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_3 = models.CharField(db_column='\u5b57\u6bb53', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_4 = models.CharField(db_column='\u5b57\u6bb54', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_5 = models.CharField(db_column='\u5b57\u6bb55', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_6 = models.CharField(db_column='\u5b57\u6bb56', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_7 = models.CharField(db_column='\u5b57\u6bb57', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_8 = models.CharField(db_column='\u5b57\u6bb58', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_9 = models.CharField(db_column='\u5b57\u6bb59', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_10 = models.CharField(db_column='\u5b57\u6bb510', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_11 = models.CharField(db_column='\u5b57\u6bb511', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_12 = models.CharField(db_column='\u5b57\u6bb512', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_13 = models.CharField(db_column='\u5b57\u6bb513', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_14 = models.CharField(db_column='\u5b57\u6bb514', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_15 = models.CharField(db_column='\u5b57\u6bb515', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_16 = models.CharField(db_column='\u5b57\u6bb516', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_17 = models.CharField(db_column='\u5b57\u6bb517', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_18 = models.CharField(db_column='\u5b57\u6bb518', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_19 = models.CharField(db_column='\u5b57\u6bb519', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_20 = models.CharField(db_column='\u5b57\u6bb520', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_21 = models.CharField(db_column='\u5b57\u6bb521', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_22 = models.CharField(db_column='\u5b57\u6bb522', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_23 = models.CharField(db_column='\u5b57\u6bb523', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_24 = models.CharField(db_column='\u5b57\u6bb524', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_25 = models.CharField(db_column='\u5b57\u6bb525', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_26 = models.CharField(db_column='\u5b57\u6bb526', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_27 = models.CharField(db_column='\u5b57\u6bb527', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
  
      class Meta:
          managed = False
          db_table = 'cyshici'
  
      def __unicode__(self):
          return self.field_1
  
  
  class Shici(models.Model):
      id = models.IntegerField(db_column='ID', primary_key=True)  # Field name made lowercase.
      field_1 = models.CharField(db_column='\u5b57\u6bb51', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_2 = models.CharField(db_column='\u5b57\u6bb52', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_3 = models.CharField(db_column='\u5b57\u6bb53', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_4 = models.CharField(db_column='\u5b57\u6bb54', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_5 = models.CharField(db_column='\u5b57\u6bb55', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_6 = models.CharField(db_column='\u5b57\u6bb56', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_7 = models.CharField(db_column='\u5b57\u6bb57', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_8 = models.CharField(db_column='\u5b57\u6bb58', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_9 = models.CharField(db_column='\u5b57\u6bb59', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_10 = models.CharField(db_column='\u5b57\u6bb510', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
  
      class Meta:
          managed = False
          db_table = 'shici'
  
      def __unicode__(self):
          return self.field_1
  
  
  class Shicibuchong(models.Model):
      id = models.IntegerField(db_column='ID', primary_key=True)  # Field name made lowercase.
      field_1 = models.CharField(db_column='\u5b57\u6bb51', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_field = models.FloatField(db_column='\u6b21\u6570', blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'. Field renamed because it ended with '_'.
      field_3 = models.CharField(db_column='\u5b57\u6bb53', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_4 = models.CharField(db_column='\u5b57\u6bb54', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_5 = models.CharField(db_column='\u5b57\u6bb55', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_6 = models.CharField(db_column='\u5b57\u6bb56', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_7 = models.CharField(db_column='\u5b57\u6bb57', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_8 = models.CharField(db_column='\u5b57\u6bb58', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_9 = models.CharField(db_column='\u5b57\u6bb59', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_10 = models.CharField(db_column='\u5b57\u6bb510', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_11 = models.CharField(db_column='\u5b57\u6bb511', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
  
      class Meta:
          managed = False
          db_table = 'shicibuchong'
  
      def __unicode__(self):
          return self.field_1
  
  
  class Xuci(models.Model):
      id = models.IntegerField(db_column='ID', primary_key=True)  # Field name made lowercase.
      field_field = models.CharField(db_column='\u865a\u8bcd', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'. Field renamed because it ended with '_'.
      field_1 = models.CharField(db_column='\u91ca\u4e491', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_2 = models.CharField(db_column='\u91ca\u4e492', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_3 = models.CharField(db_column='\u91ca\u4e493', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_4 = models.CharField(db_column='\u91ca\u4e494', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_5 = models.CharField(db_column='\u91ca\u4e495', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_6 = models.CharField(db_column='\u91ca\u4e496', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_7 = models.CharField(db_column='\u91ca\u4e497', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_8 = models.CharField(db_column='\u91ca\u4e498', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_9 = models.CharField(db_column='\u91ca\u4e499', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_10 = models.CharField(db_column='\u91ca\u4e4910', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
      field_11 = models.CharField(db_column='\u91ca\u4e4911', max_length=255, blank=True, null=True)  # Field renamed to remove unsuitable characters. Field renamed because it started with '_'.
  
      class Meta:
          managed = False
          db_table = 'xuci'
  
      def __unicode__(self):
          return self.field_1
  </code></pre>
  
  <p>Here's my <code>views.py</code> (I wrote search function here)</p>
  
  <pre><code>from django.shortcuts import render
  from dict.models import Cyshici
  
  def index(request):
      Cyshici_list = Cyshici.objects.all()
      context_dict = {'cyshici': Cyshici_list}
      return render(request, 'dict/base.html', context_dict)
  
  def search(request):
  
      result_cyshici_list = []
  
      if request.method == 'GET':
          if 'field_1' in request.GET:
              field_1 = request.GET['field_1']
              try:
                  words = Cyshici.objects.filter(field_1=field_1)
                  result_cyshici_list.append(words)
              except:
                  pass
  
      return render(request, 'dict/search.html', {'result_cyshici_list': result_cyshici_list})
  </code></pre>
  
  <p>search.html</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="utf8"&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  {{ result_cyshi_list }}
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Here's my base.html. I want it to display the search form.</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt; 
      &lt;meta charset="utf8"&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
      &lt;form method="get" action="/dict/search/" enctype="mutipart/form-data"&gt;
      &lt;div class="form-group"&gt;
           &lt;p&gt;&lt;input class="form-control" id="search_cyshici" name="cyshici" /&gt;&lt;/p&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The HTML is returning a blank page. Can anyone help me understanding what's wrong or point me into the right direction? </p>