I'm having a problem where admin of my models works fine in the
development server, but fails in production, where I'm using mod_wsgi.

Here's the relevant parts of my urls.py:

from django.conf.urls.defaults import *
from django.contrib import admin
admin.autodiscover()

from django.conf import settings

urlpatterns=patterns('',
    (r'%sadmin/' %settings.SUB_SITE, include(admin.site.urls)),
)

For production, SUB_SITE='', for development, SUB_SITE = 'perf/'. This
is part of the whole "make django run in a sub-directory" dance. It
works for most everything, including things such as perf/admin/sites/
site/, and it even works for perf/admin/manager/testbeds/, showing all
of the testbeds in the DB. But if I try to add, or click on one of the
entries to change it, I get "No TestBed matches the given query" (and
that's it, even though I have DEBUG turned on) in production. But when
I try to troubleshoot it with the development server, it works just
fine! This is frustrating...

So, how do I figure out why these are operating differently, and to
fix it? I'm not ever sure what query that it is talking about!

Thanks,
Doug

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to