Handling static files with Django / lighttpd
Posted
by ptikobj
on Stack Overflow
See other posts from Stack Overflow
or by ptikobj
Published on 2010-04-24T06:39:06Z
Indexed on
2010/04/24
6:43 UTC
Read the original article
Hit count: 209
I know that there is already a question (actually some more) about this, but the answers to them didn't help me out very much, as I am pretty new to lighttpd.
I have one folder which contains .pdf-files. When doing a HttpResponseRedirect to the locations of one of those .pdf-files, the user should be able to download the .pdf file (or view it in the browser). Right now, Django just redirects to my "home" html page, without showing any pdf-file.
Somehow, I will have to tell lighttpd that Django shouldn't handle this directory anymore. Is this the only thing I need to do? If yes, how should i do it?
© Stack Overflow or respective owner