[Tutor] where is the wsgi server root?

Alan Gauld alan.gauld at btinternet.com
Wed Apr 15 01:09:09 CEST 2015


On 14/04/15 17:56, Jim Mooney wrote:

> simplest thing to see if I can get python on a web page since I'm used to
> making them.
>
> Or if the root is virtual how do I set up a physical root?

I'm guessing; but I'd expect it to be the current directory
when you started the server. try adding a

print( os,getcwd() )

And see if the result is your root.
Or you could try reading the documents...they might tell you!

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list