Hi all, I'm having a problem with an app viewed through apache. I'm fairly sure it's going to be something obvious, I just can't see what it is.
Basically, when I try to view the landing page for the project at / recipe/ I get a 404 as follows: "Using the URLconf defined in recipe.urls, Django tried these URL patterns, in this order: 1. ^static/(?P<path>.*)$ 2. ^recipe/admin/(.*) 3. ^recipe/$ 4. ^recipe/search/ 5. ^recipe/browse/ 6. ^recipe/list/$ 7. ^recipe/type/(?P<foodtype>[\d]+)/$ 8. ^recipe/chef/(?P<chefid>[\d]+)/$ 9. ^recipe/method/(?P<methodid>[\d]+)/$ 10. ^recipe/cuisine/(?P<cuisineid>[\d]+)/$ 11. ^recipe/course/(?P<courseid>[\d]+)/$ 12. ^recipe/season/(?P<seasonid>[\d]+)/$ 13. ^recipe/programme/(?P<programmeid>[\d]+)/$ 14. ^recipe/ingredient/(?P<ingredient>[\d]+)/$ 15. ^recipe/recipe/(?P<recipe_id>\d+)/$ The current URL, recipe/, didn't match any of these." I can't work out why "recipe/" doesn't match the 3rd line - "^recipe/ $". Configs below, and any ideas or suggestions would be very much appreciated. This works fine using manage.py runserver, just not when fronted with apache. I confess I'm stumped. httpd.conf: <Location "/recipe/"> SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE recipe.settings SetEnv PYTHON_EGG_CACHE /usr/local/django-tmp PythonInterpreter recipe PythonOption django.root /recipe PythonDebug On PythonPath "['/usr/local/django-apps/'] + sys.path" </location> urls.py: urlpatterns = patterns("", # Example: # (r'^recipes/', include('recipes.foo.urls')), # Uncomment the next line to enable admin documentation: # (r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment the next line for to enable the admin: (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': 'D:/nath/projects/tech/django/media/'}), (r'^admin/(.*)', admin.site.root), (r'^recipe/$', 'recipe.recipes.views.homesearch'), (r'^recipe/search/', 'recipe.recipes.views.search'), (r'^recipe/browse/', 'recipe.recipes.views.browse'), (r'^recipe/list/$', 'django.views.generic.list_detail.object_list', info_dict), (r'^recipe/type/(?P<foodtype>[\d]+)/$', 'recipe.recipes.views.type_list'), (r'^recipe/chef/(?P<chefid>[\d]+)/$', 'recipe.recipes.views.chef_list'), (r'^recipe/method/(?P<methodid>[\d]+)/$', 'recipe.recipes.views.method_list'), (r'^recipe/cuisine/(?P<cuisineid>[\d]+)/$', 'recipe.recipes.views.cuisine_list'), (r'^recipe/course/(?P<courseid>[\d]+)/$', 'recipe.recipes.views.course_list'), (r'^recipe/season/(?P<seasonid>[\d]+)/$', 'recipe.recipes.views.season_list'), (r'^recipe/programme/(?P<programmeid>[\d]+)/$', 'recipe.recipes.views.programme_list'), (r'^recipe/ingredient/(?P<ingredient>[\d]+)/$', 'recipe.recipes.views.ingredient_list'), (r'^recipe/recipe/(?P<recipe_id>\d+)/$', 'recipe.recipes.views.recipe_detail'), ) --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---