I'm trying to deploy a django project using the recommended daemon
mode. I read that rather than using WSGIPythonPath, one should pass
the path as an argument to WSGIDaemonProcess as "python-path". I have
tried this, but get an error with importing. If I go ahead and
include the WSGIPythonPath directive, the import works fine.
Does this mean my mod_wsgi is ignoring the daemon process directive
altogether? Here is a sample of my file:
> I'm trying to deploy a django project using the recommended daemon > mode. I read that rather than using WSGIPythonPath, one should pass > the path as an argument to WSGIDaemonProcess as "python-path". I have > tried this, but get an error with importing. If I go ahead and > include the WSGIPythonPath directive, the import works fine.
> Does this mean my mod_wsgi is ignoring the daemon process directive > altogether? Here is a sample of my file:
> Is there a way I can check whether daemon mode is working properly?
> -- > You received this message because you are subscribed to the Google Groups "modwsgi" group. > To post to this group, send email to modwsgi@googlegroups.com. > To unsubscribe from this group, send email to modwsgi+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
> On 19 April 2012 06:57, Dan <ellis...@gmail.com> wrote:
> > Hello all,
> > I'm trying to deploy a django project using the recommended daemon
> > mode. I read that rather than using WSGIPythonPath, one should pass
> > the path as an argument to WSGIDaemonProcess as "python-path". I have
> > tried this, but get an error with importing. If I go ahead and
> > include the WSGIPythonPath directive, the import works fine.
> > Does this mean my mod_wsgi is ignoring the daemon process directive
> > altogether? Here is a sample of my file:
> > Is there a way I can check whether daemon mode is working properly?
> > --
> > You received this message because you are subscribed to the Google Groups "modwsgi" group.
> > To post to this group, send email to modwsgi@googlegroups.com.
> > To unsubscribe from this group, send email to modwsgi+unsubscribe@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/modwsgi?hl=en.
> On 19 April 2012 06:57, Dan <ellis...@gmail.com> wrote:
> > Hello all,
> > I'm trying to deploy a django project using the recommended daemon
> > mode. I read that rather than using WSGIPythonPath, one should pass
> > the path as an argument to WSGIDaemonProcess as "python-path". I have
> > tried this, but get an error with importing. If I go ahead and
> > include the WSGIPythonPath directive, the import works fine.
> > Does this mean my mod_wsgi is ignoring the daemon process directive
> > altogether? Here is a sample of my file:
> > Is there a way I can check whether daemon mode is working properly?
> > --
> > You received this message because you are subscribed to the Google Groups "modwsgi" group.
> > To post to this group, send email to modwsgi@googlegroups.com.
> > To unsubscribe from this group, send email to modwsgi+unsubscribe@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/modwsgi?hl=en.
The domain should be totally irrelevant unless you aren't showing all the relevant Apache configuration.
The only way your WSGI application would have been run in the daemon process would be to have set WSGIProcessGroup or add appropriate process-group option to WSGIScriptAlias. One when in daemon mode would python-path option applied.
Anyway, so long as that validation check I pointed you to in documentation now works, you should be fine. You might look at some of the other validation checks you can run which are described in that documentation to understand how your system is setup.
Graham
On 19 April 2012 22:41, Dan <ellis...@gmail.com> wrote:
>> On 19 April 2012 06:57, Dan <ellis...@gmail.com> wrote:
>> > Hello all,
>> > I'm trying to deploy a django project using the recommended daemon >> > mode. I read that rather than using WSGIPythonPath, one should pass >> > the path as an argument to WSGIDaemonProcess as "python-path". I have >> > tried this, but get an error with importing. If I go ahead and >> > include the WSGIPythonPath directive, the import works fine.
>> > Does this mean my mod_wsgi is ignoring the daemon process directive >> > altogether? Here is a sample of my file:
>> > Is there a way I can check whether daemon mode is working properly?
>> > -- >> > You received this message because you are subscribed to the Google Groups "modwsgi" group. >> > To post to this group, send email to modwsgi@googlegroups.com. >> > To unsubscribe from this group, send email to modwsgi+unsubscribe@googlegroups.com. >> > For more options, visit this group athttp://groups.google.com/group/modwsgi?hl=en.
> -- > You received this message because you are subscribed to the Google Groups "modwsgi" group. > To post to this group, send email to modwsgi@googlegroups.com. > To unsubscribe from this group, send email to modwsgi+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.