Re: [modwsgi] Mod_wsgi not giving expected results

2017-08-18 Thread Mike Heath
It works! In the end I did not have to refer to the link to virtual environments, although I read it anyway for interest. My python-test.wsgi file now looks like this: import sys sys.path.insert(0,"C:\python_projects\www\python-test") from hello import app as application So I think I can

Re: [modwsgi] Mod_wsgi not giving expected results

2017-08-17 Thread Graham Dumpleton
> On 18 Aug 2017, at 9:01 am, Mike Heath wrote: > > Thanks for that Graham but I'm not quite out of the wood yet. From your > latest advice, my httpd-vhosts.conf file now looks like this: > > # Virtual Hosts > > > ServerName localhost > DocumentRoot

Re: [modwsgi] Mod_wsgi not giving expected results

2017-08-17 Thread Mike Heath
Thanks for that Graham but I'm not quite out of the wood yet. From your latest advice, my httpd-vhosts.conf file now looks like this: # Virtual Hosts ServerName localhost DocumentRoot c:/wamp/www Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride

Re: [modwsgi] Mod_wsgi not giving expected results

2017-08-17 Thread Graham Dumpleton
> On 17 Aug 2017, at 11:14 pm, Mike Heath wrote: > > What a star you are! That worked! It was the virtual host setup that put the > final piece into the jigsaw. I have also, on your advice, moved all python > project files to a new directory outside wamp. Once I had

Re: [modwsgi] Mod_wsgi not giving expected results

2017-08-17 Thread Mike Heath
What a star you are! That worked! It was the virtual host setup that put the final piece into the jigsaw. I have also, on your advice, moved all python project files to a new directory outside wamp. Once I had changed the virtual host details, that worked fine too. However, that's a simple

Re: [modwsgi] Mod_wsgi not giving expected results

2017-08-17 Thread Graham Dumpleton
> On 17 Aug 2017, at 9:23 pm, Mike Heath wrote: > > Thanks for your response. Taking the points in turn: > > Can you confirm that you are using the same Apache instance for PHP at the > same time as wanting to use it for Python? Yes that is correct > Many thanks for

Re: [modwsgi] Mod_wsgi not giving expected results

2017-08-17 Thread Mike Heath
Thanks for your response. Taking the points in turn: Can you confirm that you are using the same Apache instance for PHP at the same time as wanting to use it for Python? Yes that is correct Many thanks for your response, Graham. Taking your point in turn: Can you confirm that you are using the

Re: [modwsgi] Mod_wsgi not giving expected results

2017-08-17 Thread Graham Dumpleton
> On 17 Aug 2017, at 7:15 pm, Mike Heath wrote: > > I am on a PC running Windows 10. I am in the early stages of learning python > and flask for web development purposes and I want to set up a local > development environment. I have been using wamp for php development