Changeset 9390 for src/django_gheat


Ignore:
Timestamp:
Jul 12, 2011, 11:08:25 AM (13 years ago)
Author:
rick
Message:

Stop duplication the website directive, needed to be wlheatmap instead.

While we are here, get rid of the 'HomeView', as I think we do not need it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/wlheatmap/urls.py

    r9387 r9390  
    11from django.conf.urls.defaults import *
    22from django.views.generic.simple import direct_to_template
    3 from django.views.generic.base import TemplateView
     3#from django.views.generic.base import TemplateView
    44from django.conf import settings
    55
    6 class HomeView(TemplateView):
    7     template_name = 'home.html'
     6#class HomeView(TemplateView):
     7#    template_name = 'home.html'
     8#
     9#urlpatterns = patterns('',
     10#    ('^$', HomeView.as_view())
     11#)
    812
    9 urlpatterns = patterns('',
    10     ('^$', HomeView.as_view())
    11 )
    12 
    13 urlpatterns += patterns('wlheatmap',
     13urlpatterns = patterns('wlheatmap',
     14    url(r'^$', direct_to_template, {'template' : 'home.html'}),
    1415    url(r'^tile/(?P<zoom>\d+)/(?P<x>\d+),(?P<y>\d+).png$', 'tile.serve_tile'),
    1516    url(r'^nodelist/(?P<zoom>\d+),(?P<lat>[0-9.]+),(?P<lon>[0-9.]+)$', 'nodelist.serve_nodelist'),
Note: See TracChangeset for help on using the changeset viewer.