WebFaction
Community site: login faq

Hello,

I'm trying to configure my application and apache to serve downloadable files requested through my website. The link from the website gets processed by Django to log the download in the app and then creates a filepath to the actual file on the server and returns it using the django-sendfile module.

I followed the instructions to setup xsendfile and mod_wsgi backends, but couldn't make neither work. Also tried following this thread but kept getting "does not exist" when trying to download, while in all cases, a direct link (the django created filepath) pasted into the address bar worked and the browser saw the files (when the access to the Directory wasn't disabled in httpd.conf).

The app is under /webapps/myapp and the files are under /webapps/media/fileslibrary. The /webapps/media library also serves as the static media library for css, js, etc. Though I'm not using the static app for the /fileslibrary , and the /fileslibrary has an alias in httpd.conf to be accessed by.

Can you please guide to what can I do to make the downloads work? Is there any other recommended way to server files for download that can make a route through Django?

Thanks a lot,
Alon

asked 18 Jul '12, 05:46

Scillon
11
accept rate: 0%


If you send us a support ticket we can look directly.

permanent link

answered 18 Jul '12, 22:23

johns
5.3k312
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×908
×6
×1

question asked: 18 Jul '12, 05:46

question was seen: 1,862 times

last updated: 18 Jul '12, 22:23

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM