On Sat, 2009-03-14 at 19:52 -0700, Rex wrote: [...] > <Location "/myapp/"> > SetHandler python-program > PythonHandler django.core.handlers.modpython > SetEnv DJANGO_SETTINGS_MODULE mysite.settings > PythonOption django.root /home/rex/django/mturk
*sigh* Will people please stop *guessing* at what goes into the django.root option? Don't use options you don't understand what they're for and if you work out that a particular option is needed, understand what it does before filling it in. :-( The documentation is pretty clear on what it should contain: http://docs.djangoproject.com/en/dev/howto/deployment/modpython/#basic-configuration > PythonDebug On > PythonPath "['/home/rex/django/mturk'] + sys.path" > </Location> > > Some sources say this snippet should go in /etc/apache2/httpd.conf, > and some sources say it should go in /etc/apache2/sites-enabled/000- > default. Which should I go with? It depends on which distribution you're running. On Fedora, for example, it goes in /etc/httpd/conf.d/ . So you'll need to provide some more information. > Also, I read somewhere that I should > change my DocumentRoot to the path to the Django project, but wouldn't > that expose my database and my Python source? The Django documentation for installing with modpython is accurate and complete, so use that as your reference (then using the Apache manual and other places to understand the terms in there if you're not sure). The above advice is not just bad, it's dangerous and stupid. So you're right to be suspicious. There's simply no reason to do that. 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---