source: src/django_gheat/urls.py@ 9376

Last change on this file since 9376 was 9376, checked in by rick, 13 years ago

Rename the kind-of-meaningless-named django app website to a more meaningfull name wlheatmap

File size: 805 bytes
Line 
1from django.conf.urls.defaults import *
2from django.contrib.staticfiles.urls import staticfiles_urlpatterns
3from django.views.generic.simple import redirect_to
4
5# Uncomment the next two lines to enable the admin:
6from django.contrib import admin
7admin.autodiscover()
8
9urlpatterns = patterns('',
10 # Example:
11 (r'^$', redirect_to, { 'url' : 'wlheatmap/', 'permanent' : False }),
12 (r'^wlheatmap/', include('wlheatmap.urls')),
13 (r'^gheat/', include('gheat.urls')),
14 (r'^admin/', include(admin.site.urls)),
15)
16
17urlpatterns += patterns('wlheatmap.osm_proxy',
18 url(
19 # Example : today/fire/12/3,2.png
20 regex = r'^osm-proxy/(?P<zoom>\d+)/(?P<x>\d+),(?P<y>\d+).png$',
21 view = 'osm_proxy',
22 name = 'osm_proxy',
23 ),
24 )
25
26urlpatterns += staticfiles_urlpatterns()
27
Note: See TracBrowser for help on using the repository browser.