new to Django, and encountering a strange issue: Firefox runs completely well with the URL patterns established in our app, but Safari bombs out with an error stating:
Django tried these URL patterns, in this order:
^admin/doc/
^admin/(.*)
^auth/
^game/
^static/(?P<path>.*)$
The current URL, , didn't match any of these.
So it looks like no URL is matching, but why would it work for one client and not another? What’s different about Safari?
Edited to include game/urls.py and a root level urls.py (are there supposed to be 2 files?):
(game/urls.py)
from django.conf.urls.defaults import *
urlpatterns = patterns('game.views',
(r'^$', 'index'),
(r'^dashboard/', 'dashboard'),
(r'^details/(?P<venue_id>\d+)/$', 'details'),
)
(urls.py)
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
# Example:
# (r'^starsquare/', include('starsquare.foo.urls')),
# Uncomment the admin/doc line below and add 'django.contrib.admindocs'
# to INSTALLED_APPS 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)),
(r'^admin/(.*)', admin.site.root),
(r'^auth/', include('djangofoursquare.urls')),
#game
(r'^game/',include('game.urls')),
(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/home/username/dev/starsquare/game/static'})
)
I believe this is not the problem of Safari… OK, you can test all other browsers, but it shouldn’t make difference. Show us your full urls.py file where you define the url patterns and also what url you trying to reach.