﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
5084	urls.py not working under apache	danf@…	Malcolm Tredinnick	"Hi all,

Been looking hard for an explanation on this.  Can't seem too see what is wrong, looks ok.
Seems to work fine under manage.py runserver, but when I use apache, I just get this error. I am going to http://dfcbu001s/mysite/polls/ (internal server)
From what I can read, it is not making any sense?

Thanks.

Output:
{{{
Using the URLconf defined in mysite.urls, Django tried these URL patterns, in this order: 

^polls/$ 
^polls/(?P<poll_id>\d+)/$ 
^polls/(?P<poll_id>\d+)/results/$ 
^polls/(?P<poll_id>\d+)/vote/$ 
The current URL, /mysite/polls/, didn't match any of these.
}}}

httpd.conf ->
{{{
<Location ""/mysite/"">
  SetHandler python-program
  PythonHandler django.core.handlers.modpython
  PythonPath ""['/root/django'] + sys.path""
  SetEnv DJANGO_SETTINGS_MODULE mysite.settings
  PythonDebug On
</Location>
}}}

urls.py ->
{{{
from django.conf.urls.defaults import *

urlpatterns = patterns('mysite.polls.views',
    (r'^polls/$', 'index'),
    (r'^polls/(?P<poll_id>\d+)/$', 'detail'),
    (r'^polls/(?P<poll_id>\d+)/results/$', 'results'),
    (r'^polls/(?P<poll_id>\d+)/vote/$', 'vote'),
)
}}}"		closed	HTTP handling	dev		fixed	urls.py apache		Unreviewed	0	0	0	0	0	0
