Django: Serving Media Behind Custom URL

后端 未结 3 706
既然无缘
既然无缘 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:09

    The basic idea is to get your Django view to redirect to a secure URL that is served by your media server.

    See this list of suggestions by Graham Dumpleton, author of mod_wsgi.

提交回复
热议问题