On 06/11/2014, at 2:28 PM, robert brook <[email protected]> wrote:

> I have downloaded and successfully run mod_wsgi as a python plugin from the 
> following site
> https://github.com/GrahamDumpleton/mod_wsgi
> 
> I have run the test scripts successfullly for django from one server in which 
> apache and django are on the same server
> mod_wsgi-express start-server  >>this works as expected
> mod_wsgi-express start-server wsgi.py   >> this works as expected
> (I had to move the wsgi.py file up one directory level to have the web site 
> render correctly.
If wish to use mod_wsgi-express, for a Django site, you are better off 
integrating mod_wsgi as an installed application with Django. See section 
'Using mod_wsgi express with Django' of:

    https://pypi.python.org/pypi/mod_wsgi

By doing that, the runmodwsgi management command will then make sure that 
Python module search paths, access to static files etc is correct.

Have you read the documentation on the PyPi page and tried that method?

What version of Django are you using?

How much have you changed around things from the standard Django layout?

> How do I install and configure this to work on a 2 tier apache / django 
> application.
> When I perform the setup.py install, does the apache installation get touched 
> by the installation?
> And can this be used for Production assuming that I can configure a 2 tier 
> installation?
I am not too clear on what you are trying to achieve.

Are you talking about using mod_wsgi-express behind another front end Apache 
instance where the first Apache is merely proxying to the second Apache 
instance started up by mod_wsgi-express?

Generally if you have a working Apache instance already on the system 
fulfilling other purposes, you would use mod_wsgi installed direct in to it. 
For that you would not use mod_wsgi-express but the more traditional way of 
building and installing mod_wsgi. You would then follow setup instructions as 
given in the Django documentation for mod_wsgi:

    https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/modwsgi/

Can you perhaps clarify what you are trying to do and whether you have an 
existing Apache installation you need to use.

Graham

-- 
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 http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to