source: src/django_gheat/urls.py@ 9388

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

Valid settings importer

File size: 860 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
7from django.conf import settings
8admin.autodiscover()
9
10
11urlpatterns = patterns('',
12 # Example:
13 (r'^$', redirect_to, { 'url' : 'wlheatmap/', 'permanent' : False }),
14 (r'^wlheatmap/', include('wlheatmap.urls')),
15 (r'^gheat/', include('gheat.urls')),
16 (r'^admin/', include(admin.site.urls)),
17)
18
19urlpatterns += patterns('wlheatmap.osm_proxy',
20 url(
21 # Example : today/fire/12/3,2.png
22 regex = r'^osm-proxy/(?P<zoom>\d+)/(?P<x>\d+),(?P<y>\d+).png$',
23 view = 'osm_proxy',
24 name = 'osm_proxy',
25 ),
26 )
27
28if settings.DEBUG:
29 urlpatterns += staticfiles_urlpatterns()
30
Note: See TracBrowser for help on using the repository browser.