Hello,

I'm trying to figure out why a django app on my server isn't running.
I've attempted to validate my django install by setting up a test
application as per http://www.djangobook.com/en/1.0/. The test app
lets me load pages just fine, with the Hello World and Time examples
they give working. My server is running Apache 2, mod_python 3.3.1-r1,
Python 3.1.2-r3, and Django 1.2.1.

However, a more complex app installed on the same server but in a
different virtual host does not work. I can't see any errors in the
config, as the config is the same (with paths changed as needed) on my
working test site. However, every time I try to access the
application, it gives this error:

Page not found (404)
Request Method:         GET
Request URL: http://[redacted]/seeds/

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

   1. ^seeds/ ^/$
   2. ^activities/
   3. ^news/
   4. ^site_media(?P<path>.*)$
   5. ^admin/
   6. ^photologue/
   7. ^i18n/
   9. ^accounts/login/$
   9. ^accounts/log_out/$

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

Out of those URLs, admin/ will pull up a login page but all other URLs
fail.

The urls.py file is:
from django.conf.urls.defaults import *
from django.contrib import admin

admin.autodiscover()

urlpatterns = patterns('',
    (r'^seeds/', include('seeds.general.urls')),
    (r'^activities/', include('seeds.activities.urls')),
    (r'^news/', include('seeds.news.urls')),
    (r'^site_media(?P<path>.*)$', 'django.views.static.serve',
    {'document_root': 'site_media', 'show_indexes': True}),
    (r'^admin/', include(admin.site.urls)),
    (r'^photologue/', include('photologue.urls')),
    (r'^i18n/', include('django.conf.urls.i18n')),
    (r'^accounts/login/$', 'django.contrib.auth.views.login'),
    (r'^accounts/log_out/$', 'django.contrib.auth.views.logout',
    {'template_name': 'general/templates/registration/
logged_out.html'}),
)

Lastly, the Django/Python config is being set in a .htaccess file,
just as on my test site. The .htaccess is:
SetHandler python-program
PythonHandler django.core.handlers.modpython
PythonPath "[ '/home/[redacted]/pypi' ] + sys.path"
SetEnv DJANGO_SETTINGS_MODULE seeds.settings
SetEnv PYTHON_EGG_CACHE /tmp/.python-eggs
PythonDebug On
PythonOption django.root

Can anyone shed some light on this? I've spent a reasonable amount of
time Googling and I haven't found many resources that would help me
fix this.

Thanks,
Duncan

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
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