Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
static_url being cached?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
L-R  
View profile  
 More options Oct 5 2012, 2:16 pm
From: L-R <laur...@human.co>
Date: Fri, 5 Oct 2012 11:16:10 -0700 (PDT)
Local: Fri, Oct 5 2012 2:16 pm
Subject: static_url being cached?

I have different settings for DEV and PROD environments. My settings file
looks like :

if on_server :
   STATIC_DIR = some_S3_bucket_url

if on_dev:
  STATIC_DIR = static/

Then in my main file, I define my application normally :

application = tornado.web.Application([
    (r"/", MyHandler),
],debug=settings.DEBUG, static_path=settings.STATIC_DIR)

Now, when I deploy on the server, Tornado still tries to serve from the
static/ folder, which it shouldn't. In my handler, settings.STATIC_DIR
returns the right URL (s3 url), and even if I change the static/ url in the
dev settings to anything else, Tornado still tries to serve from static/. I
tried clearing my cache, deleted .pyc files...what could be going on?

Thanks.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »