> On 10 Sep 2018, at 9:20 am, Νικόλαος Κούρας <[email protected]> wrote: > > Can you please tell me how should i write?
I can help when you have a specific issue related to mod_wsgi installation and configuration, or bugs in mod_wsgi. For more general programming there are better forums you can use, such as StackOverflow (https://stackoverflow.com/ <https://stackoverflow.com/>). > And what happens when we have a process already loaded for /clientele and > /downloads waiting for browser hits and at the same time when '/' runs tries > as well to loads that url locations as well? The configuration you are using is multithreaded, meaning that multiple requests can be handled at the same time. You can read more details about different mod_wsgi configurations at: https://modwsgi.readthedocs.io/en/develop/user-guides/processes-and-threading.html <https://modwsgi.readthedocs.io/en/develop/user-guides/processes-and-threading.html> I would really recommend you start looking up and researching these sorts of things yourself in order to learn. If you always depend on others to solve every single problem for you, you will not learn anything, nor get things done quickly. I have already given you way more of my time than is generally regarded as reasonable to expect. I do have my own work to do. So please start using StackOverflow for your programming issues now that mod_wsgi is working. > > Στις Δευ, 10 Σεπ 2018 στις 2:15 π.μ., ο/η Graham Dumpleton > <[email protected] <mailto:[email protected]>> έγραψε: > That function is meant to be given a command to execute, not a web address. > > https://docs.python.org/3/library/subprocess.html#subprocess.check_output > <https://docs.python.org/3/library/subprocess.html#subprocess.check_output> > > If you want to make web requests against another application, use the > 'requests' module. > > http://docs.python-requests.org/en/master/ > <http://docs.python-requests.org/en/master/> > >> On 10 Sep 2018, at 8:00 am, Νίκος Βέργος <[email protected] >> <mailto:[email protected]>> wrote: >> >> 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/ >> <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 <http://superhost.gr/clientele> >> >> File http://superhost.gr/clientele <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? >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "modwsgi" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] >> <mailto:[email protected]>. >> To post to this group, send email to [email protected] >> <mailto:[email protected]>. >> Visit this group at https://groups.google.com/group/modwsgi >> <https://groups.google.com/group/modwsgi>. >> For more options, visit https://groups.google.com/d/optout >> <https://groups.google.com/d/optout>. > > > -- > You received this message because you are subscribed to a topic in the Google > Groups "modwsgi" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/modwsgi/iMLLZRkHu9I/unsubscribe > <https://groups.google.com/d/topic/modwsgi/iMLLZRkHu9I/unsubscribe>. > To unsubscribe from this group and all its topics, send an email to > [email protected] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/modwsgi > <https://groups.google.com/group/modwsgi>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/modwsgi > <https://groups.google.com/group/modwsgi>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.
