title: TemplateSyntaxError: expected token ':', got '}'
body: <p>This is my source code: </p>
  
  <pre><code>&lt;ul class="filebase"&gt;
          {% for file in finance %}
          &lt;li class="filelist"&gt;
              &lt;div class="file-author"&gt;&lt;a href="http://127.0.0.1:5000/uploads/files/{{file. filename}}"&gt;{{ file.filename }}&lt;/a&gt;&lt;/div&gt;
              &lt;div class="file-body"&gt;Description: {{ file.description }}&lt;/div&gt;
              &lt;div class="file-date"&gt;Date posted: {{ moment(file.date).fromNow() }}&lt;/div&gt;
              &lt;div class="delete-file"&gt;&lt;a href="{{ url_for('.delete_file', file_name={{ file.filename }} ) }}"&gt;Delete File&lt;/a&gt;&lt;/div&gt;&lt;br&gt;
          &lt;/li&gt;
          {% endfor %}
  </code></pre>
  
  <p>At first, my code was working, suddenly I got an error like this:</p>
  
  <p>TemplateSyntaxError: expected token ':', got '}'</p>
  
  <p>Here's my Traceback (If you need):</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\Users\LouieCubero\Documents\GitHub\flasky\venv\lib\site-packages\flask\app.py", line 1836, in __call__
      return self.wsgi_app(environ, start_response)
    File "C:\Users\LouieCubero\Documents\GitHub\flasky\venv\lib\site-packages\flask\app.py", line 1820, in wsgi_app
      response = self.make_response(self.handle_exception(e))
    File "C:\Users\LouieCubero\Documents\GitHub\flasky\venv\lib\site-packages\flask\app.py", line 1403, in handle_exception
      reraise(exc_type, exc_value, tb)
    File "C:\Users\LouieCubero\Documents\GitHub\flasky\venv\lib\site-packages\flask\app.py", line 1817, in wsgi_app
      response = self.full_dispatch_request()
    File "C:\Users\LouieCubero\Documents\GitHub\flasky\venv\lib\site-packages\flask\app.py", line 1477, in full_dispatch_request
      rv = self.handle_user_exception(e)
    File "C:\Users\LouieCubero\Documents\GitHub\flasky\venv\lib\site-packages\flask\app.py", line 1381, in handle_user_exception
      reraise(exc_type, exc_value, tb)
    File "C:\Users\LouieCubero\Documents\GitHub\flasky\venv\lib\site-packages\flask\app.py", line 1475, in full_dispatch_request
      rv = self.dispatch_request()
    File "C:\Users\LouieCubero\Documents\GitHub\flasky\venv\lib\site-packages\flask\app.py", line 1461, in dispatch_request
      return self.view_functions[rule.endpoint](**req.view_args)
    File "C:\Users\LouieCubero\Documents\GitHub\flasky\venv\lib\site-packages\flask_login.py", line 758, in decorated_view
      return func(*args, **kwargs)
    File "C:\Users\LouieCubero\Documents\GitHub\Flasky4\app\main\views.py", line 172, in list_of_finance
      return render_template('_filebase.html', finance = finance)
    File "C:\Users\LouieCubero\Documents\GitHub\flasky\venv\lib\site-packages\flask\templating.py", line 127, in render_template
      return _render(ctx.app.jinja_env.get_or_select_template(template_name_or_list),
    File "C:\Users\LouieCubero\Documents\GitHub\flasky\venv\lib\site-packages\jinja2\environment.py", line 830, in get_or_select_template
      return self.get_template(template_name_or_list, parent, globals)
    File "C:\Users\LouieCubero\Documents\GitHub\flasky\venv\lib\site-packages\jinja2\environment.py", line 791, in get_template
      return self._load_template(name, self.make_globals(globals))
    File "C:\Users\LouieCubero\Documents\GitHub\flasky\venv\lib\site-packages\jinja2\environment.py", line 765, in _load_template
      template = self.loader.load(self, name, globals)
    File "C:\Users\LouieCubero\Documents\GitHub\flasky\venv\lib\site-packages\jinja2\loaders.py", line 125, in load
      code = environment.compile(source, name, filename)
    File "C:\Users\LouieCubero\Documents\GitHub\flasky\venv\lib\site-packages\jinja2\environment.py", line 554, in compile
      self.handle_exception(exc_info, source_hint=source)
    File "C:\Users\LouieCubero\Documents\GitHub\flasky\venv\lib\site-packages\jinja2\environment.py", line 742, in handle_exception
      reraise(exc_type, exc_value, tb)
    File "C:\Users\LouieCubero\Documents\GitHub\Flasky4\app\templates\_filebase.html", line 8, in template
      &lt;div class="delete-file"&gt;&lt;a href="{{ url_for('.delete_file', file_name={{ file.filename }} ) }}"&gt;Delete File&lt;/a&gt;&lt;/div&gt;&lt;br&gt;
  TemplateSyntaxError: expected token ':', got '}'
  </code></pre>
  
  <p>Thanks for the help!</p>