Well, still no working solution, but here is my httpd.config now: <Location "/testproject/"> SetHandler python-program PythonPath "['C:/django_projects/', 'C:/Python25/lib/site-packages/ django'] + sys.path" PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE testproject.settings PythonDebug On </Location>
I'm wondering if I should move to a FastCGI setup versus mod_python, as that's how my shared environment is going to be configured. Thoughts anyone? I don't understand what the problem might be here. I'll see if I have any more luck on my Mac when I get home. - Brandon On Feb 6, 11:13 am, Brandon Taylor <[EMAIL PROTECTED]> wrote: > Hi Aaron, > > I'm still getting the same error after I restart Apache. Is there a > better setup to use for the install location for Django and where I > place my projects that plays nice with Apache? > > Thanks, > Brandon > > On Feb 6, 11:05 am, Aaron Fay <[EMAIL PROTECTED]> wrote: > > > Hey Brandon, > > > I have mine working on the same rig as you (looks like). Here's a shot > > in the dark: > > > <Location "/testproject/"> # << add forward slash > > SetHandler python-program > > PythonPath "['C:/django_projects/'] + sys.path" # << remove > > 'testproject' > > PythonHandler django.core.handlers.modpython > > SetEnv DJANGO_SETTINGS_MODULE testproject.settings > > PythonInterpreter testproject # << I don't have this line in my config, > > maybe try commenting it out > > PythonDebug On > > </Location> > > > I'm guessing your error comes from django looking for the settings > > module in /django_projects/testproject/testproject/ > > > Like I said, shot in the dark, but hth... > > Aaron > > > Brandon Taylor wrote: > > > Hi everyone, > > > > I have Apache 2 and mod_python installed on Windows. The mod_python > > > module is loaded and active. > > > > Here's a breakdown of where things are... > > > > Python is installed at: C:\Python25 > > > Django is installed at: C:\Python25\Lib\site-packages > > > \django > > > My 'testproject' in installed at: C:\django_projects\testproject > > > > I have the following entry for 'testproject' in my Apache httpd.conf: > > > > <Location "/testproject"> > > > SetHandler python-program > > > PythonPath "['C:/django_projects/testproject'] + sys.path" > > > PythonHandler django.core.handlers.modpython > > > SetEnv DJANGO_SETTINGS_MODULE testproject.settings > > > PythonInterpreter testproject > > > PythonDebug On > > > </Location> > > > > When I hit:http://localhost/testproject, I receive the following > > > error: > > > > EnvironmentError: Could not import settings 'testproject.settings' (Is > > > it on sys.path? Does it have syntax errors?): No module named > > > testproject.settings. > > > > When I use the command line and start the built-in server for the > > > project, it will run and I get the Django welcome page. I added an > > > environment variable called PYTHONPATH and pointed it to C: > > > \django_projects, but I still get the error. > > > > Can anyone point me in the right direction? I'd really like to be able > > > to test in an Apache/mod_python environment versus the built-in > > > server, as that is how my shared hosting provider is configured and > > > I'd like to avoid surprises. > > > > TIA, > > > Brandon --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---