from django.conf.urls.defaults import * from django.views.generic.simple import direct_to_template from django.views.generic.base import TemplateView from django.conf import settings class HomeView(TemplateView): template_name = 'home.html' urlpatterns = patterns('', ('^$', HomeView.as_view()) ) urlpatterns += patterns('wlheatmap', url(r'^tile/(?P\d+)/(?P\d+),(?P\d+).png$', 'tile.serve_tile'), url(r'^nodelist/(?P\d+),(?P[0-9.]+),(?P[0-9.]+)$', 'nodelist.serve_nodelist'), url(r'^filters/$', 'filters.serve_filters'), )