I am creating a file (test.txt) using the following
myfile = os.path.join(request.folder, 'static', 'test.txt')
f = open(myfile, 'w')
f.write('%s' % x)
and I like to see it when I do /myapp/static/test.txt, but I cann't. the
file has been created and I can see it in that folder. But, I like to make
it accessible by public.ultimately, I have another app that will go and
read the content of this file.
By the way, my attempt is that I have two web2py apps in two different
servers and I like app1 to go and read some data from app2 periodically; if
there is a better method than above please let me know. I read about
sharing the databases between two apps, but that works for when the two
apps are in one server.; is that right?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.