>
> I think this way, apache could be a little more faster. Am I right?
>

I don't think it will be faster.  Django normally runs as a long-standing
process (either inside Apache or as a standalone process, depending on the
deployment model you've chosen).  So, unlike ordinary CGI scripts, your
Python bytecode will not need to be generated except for the very first time
that your code is loaded.  Once it's up and running it will already be in
memory so it won't need to be reinterpreted.

I personally don't think the trade-off is worth it here.  You're giving
Apache write access to your source code (which may not be much of a security
risk relative to other things like the fact that Apache has access to your
database, but it is definitely a blurring of privilege boundaries), and
you're not getting any long-running performance benefit from it; only a
slight initial load benefit.


  -- Scott

On Mon, Jun 9, 2008 at 9:40 AM, pength <[EMAIL PROTECTED]> wrote:

>
> Thanks a lot !
>
> I changed the user information in apache2's conf file, and now it's
> OK!
>
> I think this way, apache could be a little more faster. Am I right?
>
> On 6月9日, 下午7时39分, "Valts Mazurs" <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > Check if web server process has enough privileges to write in the
> > directories containing .py files.
> >
> > Regards,
> > Valts.
> >
> > On Mon, Jun 9, 2008 at 1:25 PM, pength <[EMAIL PROTECTED]> wrote:
> >
> > > I have justed built my site on slicehost. Alhough my site is running
> > > properly, I found if I update any  file (.py file, of course), it
> > > never recreate the .pyc file. Actually, if I delete any .pyc file,
> > > then it will never appear.
> >
> > > I think there's something wrong with my site config, can anyone give
> > > me any hint?
> >
> > > I am using nginx as front proxy server and static file server, apache2
> > > and mod_python as backend.
> >
> > > Thanks!
> >
>


-- 
http://scott.andstuff.org/ | http://truthadorned.org/

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

Reply via email to