Hi all, I'm using multiple URLconfs for my simple django application. Everything works fine in development mode, but I'm getting a strange error when moving to Apache 2 with mod_wsgi.
My main urls.py looks like: --- from django.conf.urls.defaults import * from django.conf import settings # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Include app URL structure (r'^alerts/', include('mymodule.urls')), # Uncomment the admin/doc line below to enable admin documentation: (r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment the next line to enable the admin: (r'^admin/', include(admin.site.urls)), ) --- and the urls.py for my first module is below. Please note I'm using a prefix view: --- from django.conf.urls.defaults import * urlpatterns = patterns('assistant.views', # Example: (r'^view/(?P<alert_id>\d+)/$', 'detail'), (r'^$', 'index'), ) --- How can it be that the once running in Apache my main application works fine, but the admin page fails with a "TemplateSyntaxError" because it tries to use a wrong view name, It looks for "assistant.views.django.view.generic.simple" rather then "django.views.generic.simple"? The problem disappear if merging everything in one urls.py file without any view prefix. Thanks in advance! Luca -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.