> 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"?

Probably nobody or www. A simple way to try and find out is using 'ps
axu | grep httpd'; the first column should give you the user (I don't
have access to an Ubuntu distribution, otherwise I could tell you
straight away; but Google or the Ubuntu website can also tell you I
guess).
Of course, you can always use root to compile .py files, that'll
"bypass" permissions; but see Malcom's comments.

> Would I have to run compileall.py every time I change a source file
> (it seems like I would have to)?

Possibly, but you'd only want to serve files through apache +
mod_python that aren't going to change much (eg, Django, although that
should just live in the Python site-packages dir); every change also
involves restarting apache for example. Better to sort everything out
using the dev-server, then copy files and run compileall. You'd then
only run compileall for (major) upgrades; not for every single source
file change.

> I couldn't get compileall.py to work on the command line... Tried
> 'compileall.py' and 'compileall'. What am I doing wrong?

compileall comes with the Python source distribution, which is
probably hidden away in a tar file on your server, if anywhere at all.
If your database is working, try a 'locate compileall.py'
Otherwise, if it's not there, grep a Python source distribution
(preferably one that agrees with your Python version) and use the one
included with that.
--~--~---------~--~----~------------~-------~--~----~
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