from django.conf.urls import url from c3nav.mapdata.views import get_cache_package, map_history, tile urlpatterns = [ url(r'^(?P\d+)/(?P-?\d+)/(?P-?\d+)/(?P-?\d+).png$', tile, name='mapdata.tile'), url(r'^(?P\d+)/(?P-?\d+)/(?P-?\d+)/(?P-?\d+)/(?P\d+(-\d+)*).png$', tile, name='mapdata.tile'), url(r'^history/(?P\d+)/(?Pbase|composite)\.(?Ppng|data)$', map_history, name='mapdata.map_history'), url(r'^cache/package\.(?Ptar|tar\.gz|tar\.xz)$', get_cache_package, name='mapdata.cache_package'), ]