-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
webpy 跑不起来静态文件,为何? #18
Comments
你的代码贴出来我看看 |
|
结构是
根目录static下js都能访问,png和css访问不了报上面的错误,html也加载不成功,服务器500 |
我试了下你的代码,mac上可以运行。你js可以访问到,css也应该可以。你注意模板位置 |
我自己的程序,在ubuntu下运行没有问题,在win8下运行碰到同样的问题,把web\wsgiserver__init__.py
|
@vixiaoan 你把k和v print出来看看,在win上这俩不是str? |
Repository owner
deleted a comment from
smcgive
Feb 23, 2024
Repository owner
deleted a comment from
marynavoitenko
Feb 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Traceback (most recent call last):
File "D:\python 2.7.7\lib\site-packages\web\wsgiserver__init__.py", line 1245, in communicate
req.respond()
File "D:\python 2.7.7\lib\site-packages\web\wsgiserver__init__.py", line 775, in respond
self.server.gateway(self).respond()
File "D:\python 2.7.7\lib\site-packages\web\wsgiserver__init__.py", line 2020, in respond
for chunk in response:
File "D:\python 2.7.7\lib\site-packages\web\httpserver.py", line 247, in iter
self.start_response(self.status, self.headers)
File "D:\python 2.7.7\lib\site-packages\web\httpserver.py", line 302, in xstart_response
out = start_response(status, response_headers, *args)
File "D:\python 2.7.7\lib\site-packages\web\wsgiserver__init__.py", line 2058, in start_response
raise TypeError("WSGI response header value %r is not a byte string." % v)
TypeError: WSGI response header value u'text/css' is not a byte string.
The text was updated successfully, but these errors were encountered: