Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/333.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
我使用flask和l不能在Pythonywhere中显示图像,但它在本地网络上工作_Python_Flask_Pythonanywhere - Fatal编程技术网

我使用flask和l不能在Pythonywhere中显示图像,但它在本地网络上工作

我使用flask和l不能在Pythonywhere中显示图像,但它在本地网络上工作,python,flask,pythonanywhere,Python,Flask,Pythonanywhere,我检查了路径,在这个路径上有一个图像,它在本地网络中工作,但在pythonywhere中不工作 您没有提供静态文件。在PythonyWhere帮助页面中搜索“静态文件”以获取大量帮助 image=url_for('static',filename=f'users/{user}/usersimages/{image}') return f"<img src='{image}'>"

我检查了路径,在这个路径上有一个图像,它在本地网络中工作,但在pythonywhere中不工作


您没有提供静态文件。在PythonyWhere帮助页面中搜索“静态文件”以获取大量帮助

image=url_for('static',filename=f'users/{user}/usersimages/{image}')
    return f"<img src='{image}'>"