from django.conf.urls.defaults import * from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.views.generic.simple import redirect_to # Uncomment the next two lines to enable the admin: from django.contrib import admin from django.conf import settings admin.autodiscover() urlpatterns = patterns('', # Example: (r'^$', redirect_to, { 'url' : 'wlheatmap/', 'permanent' : False }), (r'^wlheatmap/', include('wlheatmap.urls')), (r'^gheat/', include('gheat.urls')), (r'^admin/', include(admin.site.urls)), ) urlpatterns += patterns('wlheatmap.osm_proxy', url( # Example : today/fire/12/3,2.png regex = r'^osm-proxy/(?P\d+)/(?P\d+),(?P\d+).png$', view = 'osm_proxy', name = 'osm_proxy', ), ) if settings.DEBUG: urlpatterns += staticfiles_urlpatterns()