Running a second wsgi script from within the first wsgi script

General support questions
Post Reply
NikosThess
Posts: 19
Joined: 2018/05/10 20:36:20

Running a second wsgi script from within the first wsgi script

Post by NikosThess » 2018/09/09 22:05:06

I have 3 wsgi scripts listening on 3 locations.
What i'm trying to run an wsgi script from within another wsgi script with the following statement.

pdata = subprocess.check_output( 'http://superhost.gr/' + page )

page = the location of another wsgi app.
The error i'am getting when for i.e i try to load http://superhost.gr/clientele

File http://superhost.gr/clientele *NOT* found

The other script by itself executes normally but NOT from within my app.py script.
Any ideas on how to execute a wsgi app (b) from within a wsgi app(a) and store the response as html data?

Post Reply