from django.conf.urls.defaults import * from django.views.generic.simple import redirect_to,direct_to_template urlpatterns = patterns('', (r'data/(?P\d+)/$', 'locations.views.data_json'), (r'^$', direct_to_template, {'template': 'archives/map.html'}), )