all of my code works well with the django server, but not for Apache

<Location "/temp">
        SetHandler python-program
        PythonHandler django.core.handlers.modpython
        SetEnv DJANGO_SETTINGS_MODULE temp.settings
        PythonDebug On
        PythonPath "['/home/xian/mycode'] + sys.path"
</Location>

here is the configuration in httpd.conf
my "temp" project is in "/home/xian/mycode/"

Add this line in the urls.py
    (r'^$','temp.helloworld.index'),

Helloworld.py
from django.http import HttpResponse

def index(request):
        return HttpResponse("Hello, Django.")

Apache works, mod_python has been installed.

I use Ubuntu 7.1

but http://localhost/temp returns

Page not found (404)
Request Method:         GET
Request URL:    http://localhost/temp/

Using the URLconf defined in temp.urls, Django tried these URL
patterns, in this order:

   1. ^$

The current URL, /temp/, didn't match any of these.

Any ideas?

Thanks,
Xian
--~--~---------~--~----~------------~-------~--~----~
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