title: AttributeError :- 'list' object has no attribute 'startswith' In Django views:-
body: <p>AttributeError :- 'list' object has no attribute 'startswith' In Django views:-</p>
  
  <pre><code>def index(request):
      value = []
      path = os.path.join(BASE_DIR,'accessfiles/media/images/GSE2035_series_matrix.txt')
      with open(path, 'r', encoding = "utf-8") as file:
          file = csv.reader(file, delimiter='\t')
          for line in file:
              if line.startswith("!Series_relation"):
                  value = line[1]
  
  
          args = {'file':value}
          return render(request, 'index.html', args) 
  </code></pre>