Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#2035 closed defect (invalid)

All perfect with Developer mode, but it not work in production using Apache

Reported by: anonymous Owned by: manuparra@…
Component: Core (Other) Version: 0.91
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


Using developer with "python runserver" works perfectly and very fine, but now i have to work in stable mode (production) and i use APACHE2 + Mod_python and i have configured apache2.conf with this (and always i have "404 PAGE NOT FOUND"):

<Location /myproject/>

SetHandler mod_python
PythonHandler django.core.handlers.modpython
PythonPath "home/mparra/desarrollo/django/? + sys.path"
SetEnv DJANGO_SETTINGS_MODULE myproject.settings
PythonDebug On


Path I have:


/ ...

When i put address:
i have the next:

Page not found (404)
Request Method: GET
Request URL:

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

  1. polls/$
  2. polls/(\d+)/$
  3. polls/(\d+)/results/$
  4. polls/(\d+)/vote/$

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

My is:

from django.conf.urls.defaults import *

urlpatterns = patterns(,

(r'polls/$', 'myproject.polls.views.index'),
polls/(\d+)/$', 'myproject.polls.views.detail'),
(r'polls/(\d+)/results/$', 'myproject.polls.views.results'),
polls/(\d+)/vote/$', ''),


Thanks, i wait your response!! Thanks

Change History (1)

comment:1 Changed 12 years ago by James Bennett

Resolution: invalid
Status: newclosed

Requests for help should be sent to the Django users mailing list:

Note: See TracTickets for help on using tickets.
Back to Top