On Wed, Sep 23, 2009 at 2:08 PM, davidjagoe <[email protected]> wrote:
>
> Ahoy,
>
> I have just used modwsgideploy to generate sample apache
> configuration. The sample apache config suggests that its a bad idea
> to install my TG2 application into site-packages:
>
> #Apache configuration File
> #Read README.txt
> #1. This file should be added to your apache config folder; On Debian
> copy to /etc/apache2/sites-available/
> #Default location for tg2 project is /usr/local/turbogears/Portal.
> That is where you should put your project. This folder should be
> outside of apache location. Your package should not be installed into
> python site-package.
>
> Could anyone tell me why that is a bad idea?
>


Because if you install your project, modwsgi will say:

Import myapp

If you installed the project aka you put it in site-packages it will
try to import the file from site-packages folder.
Since apache needs its user be the owner of the myapp, then that means
your site package needs to be also owned by apache user. I think on
linux the site-package folder is owned by root.

Another issue is that you might have 2 versions. One installed in
site-packages and another one that you think its running from.

Does that answer your question.

Thanks,
Lucas

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to