If you change your conf settings to the following do you still have the same
problem?

 <Location "/">
     SetHandler python-program
     PythonPath "[ '/usr/local/django_projects/' ] +
 sys.path"
     PythonHandler django.core.handlers.modpython
     SetEnv DJANGO_SETTINGS_MODULE beijing_eats.settings
     PythonDebug On
 </Location>

Also, I think you may want to add something like the following to your
configuration file to handle media.

<Location "/site_media/">
    SetHandler None
</Location>

Best,

Vincent

On 7/2/07 11:21 AM, "Wiley" <[EMAIL PROTECTED]> wrote:

> 
> Here's the ultra-newbie question of the day.
> 
> I have a lil' site running well under runserver, when I hook it up to
> apache2 and mod_python, something goes wrong.  For the EXACT same
> python/django code, the admin site and all URLS come up fine in the
> built-in server.  When I switch to the apache setup I get nothing but
> 404s, and I know its reading my urls file because it's saying it tried
> those urls.  Am I missing something obvious?
> 
> Here's my httpd.conf settings:
> 
> <Location "/beijingeats">
>     SetHandler python-program
>     PythonPath "[ '/usr/local/django_projects/beijing_eats/' ] +
> sys.path"
>     PythonHandler django.core.handlers.modpython
>     SetEnv DJANGO_SETTINGS_MODULE beijing_eats.settings
>     PythonInterpreter beijing_eats
>     PythonDebug On
> </Location>
> 
> Here's the 404 error I'm getting for:
> 
> http://localhost/beijingeats/*
> 
> 
> Page not found (404)
> Request Method:  GET
> Request URL:  http://localhost/beijingeats/admin/
> 
> Using the URLconf defined in beijing_eats.urls, Django tried these URL
> patterns, in this order:
> 
>    1. ^media/([^/]+)$
>    2. ^restaurant/([^/]+)
>    3. ^admin/
> 
> The current URL, /beijingeats/admin/, didn't match any of these.
> 
> You're seeing this error because you have DEBUG = True in your Django
> settings file. Change that to False, and Django will display a
> standard 404 page.
> 
> 
> > 

-- 




--~--~---------~--~----~------------~-------~--~----~
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