Django: Serving Media Behind Custom URL

后端 未结 3 708
既然无缘
既然无缘 2020-12-04 09:03

So I of course know that serving static files through Django will send you straight to hell but I am confused on how to use a custom url to mask the true location of the fil

3条回答
  •  一整个雨季
    2020-12-04 09:07

    Both httpd and Nginx have a way to specify a static file to serve via a header. The exact header varies though, so it's best to put something in the settings to pick the method.

提交回复
热议问题