WebFaction
Community site: login faq

Hi,

I have created a static-only app with an 'expires max' directive set, for my django project. Now, I would like to serve content from my /media folder with expires max directive set, too (uploaded user images). What is the correct way to do this?

(a) create a static-only app hooked on /media url (like I did before), or? (b) add /media/ folder to the STATICFILES_DIRS setting? (c) some other way.

asked 22 Apr '13, 00:21

xpanta
623344
accept rate: 0%


You'll need to go with your first option (a), as it's the only way to have our system serve your media with the "expires max" directive set.

permanent link

answered 22 Apr '13, 10:56

seanf
12.2k42136
accept rate: 37%

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:

×910
×125

question asked: 22 Apr '13, 00:21

question was seen: 2,169 times

last updated: 22 Apr '13, 10:56

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 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