Hi Malcom, Thanks a lot for the detailed response.
Sorry if these are basic questions but, what user would my web server be run under (Apache2)? Would it be my username, root, or something else like "apache"? Would I have to run compileall.py every time I change a source file (it seems like I would have to)? I couldn't get compileall.py to work on the command line... Tried 'compileall.py' and 'compileall'. What am I doing wrong? Thanks a ton, Dana On Jul 14, 4:12 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2008-07-14 at 16:09 -0700, Dana wrote: > > Hi EAMiller, > > > Im not seeing errors, Its just not compiling the python files (which > > it should be). > > > I tried a few combinations, but I believe all I need to do is set the > > chmod to 775 for the source folder (in this case "src")? > > Permissions like "775" mean nothing on their own. Permissions are > relative to the user and group involved. When you're running things from > mod_python, the important question would be whether the webserver has > write permission to those directories in order to write the .pyc files. > > However, that's only "important" in the sense that it's not really a > good idea to allow. Letting your web server only *read* from executable > file directories is really important for security reasons. For this > reason, Python ships with the 'compileall' module (which can also be > executed as a script from the command line). You run "compileall.py ..." > as somebody who does have permission to write the directory that holds > the executable files and compile them to .pyc files. Then your webserver > sees the benefit without opening up unneeded permissions. Read the > docstring at the top of the "compileall.py" file for instructions on how > to use it. > > Regards, > Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---