Ask coding questions

← Back to all posts
Python: share file between repl's
sfrias (0)

I'm making a mock, the problem is that can't access the same file from two different applications. App creates distributed local journals, that can be processed on device, but other app would be access to clean up and tune circular buffer of journals locally, and process data on master file.

Commentshotnewtop
Zavexeon (303)

Try sending it with an HTTP post request (you'll need some sort of library to proccess the request, like django).

sfrias (0)

@Zavexeon thank you. I tested with tornado python library and have "method not allowed". I'm searching about include post request on application = tornado.web.Application([
(r"/(.*)", tornado.web.StaticFileHandler,
{"path": root, "default_filename": "index.html"})
], debug=True)