在本地使用了SAE工具dev_server.py进行调试,在config.yaml中配置了静态文件的路径,但是启动dev_server.py的时候报错,但是在SAE线上环境中,没有问题。
File
"/Library/Frameworks/Python.framework/Versions/2.7/bin/dev_server.py",
line 4, in__import__('pkg_resources').run_script('sae-python-dev==1.3.6', 'dev_server.py') File"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py",
line 726, in run_scriptself.require(requires)[0].run_script(script_name, ns) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pkg_resources/__init__.py",line 1484, in run_script
exec(code, namespace, namespace) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sae_python_dev-1.3.6-py2.7.egg/EGG-INFO/scripts/dev_server.py",line 206, in
main(options) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sae_python_dev-1.3.6-py2.7.egg/EGG-INFO/scripts/dev_server.py",line 184, in main
globals().get(cls_name, WsgiWorker)(conf, application).run() File"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sae_python_dev-1.3.6-py2.7.egg/EGG-INFO/scripts/dev_server.py",
line 75, in initself.collect_statifiles() File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sae_python_dev-1.3.6-py2.7.egg/EGG-INFO/scripts/dev_server.py",line 81, in collect_statifiles
url = h['url'] TypeError: string indices must be integers, not str文件的命名有含版本号,例如jquery.3.5等等
static的文件夹中内容如下:
fancy box的文件内容如下: