Handling static files with Django / lighttpd
- by ptikobj
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?