I am working on a Django App on Heroku and need the possibility to temporarily store something on my dyno there. As far as I understood, this is possible by using a workaround with the /tmp/-folder in the root-directory of the dyno. However, I am trying to reference to a JSON stored there in JS and it seems like Django does not load, once something is outside of the static folder. How can I force Django to accept other folders as well? Or am I missing something very simple?
This is the error message I get from my server:
"GET /tmp/honoradar/mediumsname_temporary.json?v=1539425460111 HTTP/1.1" 404 2731
This is my jquery code with static as a reference:
var options = {
url: "static/honoradar/mediumsname.json?v=" + versionUpdate,
getValue: function(element) {
return element.name;
},
This is my jquery code with tmp as a reference:
var options = {
url: "tmp/honoradar/mediumsname.json?v=" + versionUpdate,
getValue: function(element) {
return element.name;
},
For making sure that the file structure is the exact same, I duplicated the static folder and renamed it "tmp".