Closed e-koch closed 9 years ago
this is a problem with serving quasi-static files from flask. I solved it, but the solution didn't stick and I don't understand why. My solution was this:
@app.route('/query/static/jstables/<path:path>')
@app.route('/static/jstables/<path:path>')
def send_js(path):
return send_from_directory('/static/jstables/', path)
which worked when I tested it the first time, but it definitely doesn't work now. I'm open to suggestions - right now I have no ideas.
This problem seems to be gone in the current master
OK, and it's back! Hooray!
As far as I could tell, this fixed the bug locally. But it doesn't make any sense.
Here's what the path is: http://camelot-project.herokuapp.com/static/jstables/static/jstables/Output_Table_20150531052709429032.ipac?1433050031223
"static/jstables" is getting appended twice somewhere.