这种类似url 映射到服务器的目录,是咋实现的,tomcat 或者啥东西直接配置了一下么?django 如何实现?
https://docs.djangoproject.com/zh-hans/3.2/howto/deployment/wsgi/modwsgi/#serving-files
一行python代码就可以:
python -m http.server 8080
在需要映射目录的路径下运行这个命令,即可启动一个http服务,http://127.0.0.1:8080/ 即可访问。