找回密码
 立即注册

扫一扫,访问微社区

QQ登录

只需一步,快速开始

查看: 1900|回复: 1

[求助] tornado+ui框架跑不起来,问模版访问路径问题

1

主题

7

帖子

7

积分

贫民

积分
7
馒头 发表于 2018-5-8 05:39:16 | 显示全部楼层 |阅读模式
本帖最后由 馒头 于 2018-5-8 05:39 编辑

错误:

1

1

2

2

3

3


代码:
QQ截图20180508053444.png

4

4



静太文件路径都对的,不知道怎么改路径。求大神解释一下底层!!!
  1.     def check_etag_header(self):
  2.         """Checks the ``Etag`` header against requests's ``If-None-Match``.

  3.         Returns ``True`` if the request's Etag matches and a 304 should be
  4.         returned. For example::

  5.             self.set_etag_header()
  6.             if self.check_etag_header():
  7.                 self.set_status(304)
  8.                 return

  9.         This method is called automatically when the request is finished,
  10.         but may be called earlier for applications that override
  11.         `compute_etag` and want to do an early check for ``If-None-Match``
  12.         before completing the request.  The ``Etag`` header should be set
  13.         (perhaps with `set_etag_header`) before calling this method.
  14.         """
  15.         computed_etag = utf8(self._headers.get("Etag", ""))
  16.         # Find all weak and strong etag values from If-None-Match header
  17.         # because RFC 7232 allows multiple etag values in a single header.
  18.         etags = re.findall(
  19.             br'\*|(?:W/)?"[^"]*"',
  20.             utf8(self.request.headers.get("If-None-Match", ""))
  21.         )
  22.         if not computed_etag or not etags:
  23.             return False

  24.         match = False
  25.         if etags[0] == b'*':
  26.             match = True
  27.         else:
  28.             # Use a weak comparison when comparing entity-tags.
  29.             def val(x):
  30.                 return x[2:] if x.startswith(b'W/') else x

  31.         for etag in etags:
  32.             if val(etag) == val(computed_etag):                            #line 1488行   就是这里,新人看不明白,这模版是咋个传递的
  33.                     match = True
  34.                     break
  35.         return match
复制代码


回复

使用道具 举报

1

主题

7

帖子

7

积分

贫民

积分
7
馒头  楼主| 发表于 2018-5-8 05:52:17 | 显示全部楼层
........std/dist/views/#undefined       ui框架官方路由地址栏所有功能一直是这样显示的,
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表