source: src/django_gheat/urls.py@ 9388

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

Valid settings importer

File size: 860 bytes
RevLine 
[9139]1from django.conf.urls.defaults import *
2from django.contrib.staticfiles.urls import staticfiles_urlpatterns
[9367]3from django.views.generic.simple import redirect_to
[9139]4
5# Uncomment the next two lines to enable the admin:
6from django.contrib import admin
[9388]7from django.conf import settings
[9139]8admin.autodiscover()
9
[9386]10
[9139]11urlpatterns = patterns('',
12 # Example:
[9376]13 (r'^$', redirect_to, { 'url' : 'wlheatmap/', 'permanent' : False }),
14 (r'^wlheatmap/', include('wlheatmap.urls')),
[9139]15 (r'^gheat/', include('gheat.urls')),
16 (r'^admin/', include(admin.site.urls)),
17)
[9358]18
[9376]19urlpatterns += patterns('wlheatmap.osm_proxy',
[9358]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
[9388]28if settings.DEBUG:
[9386]29 urlpatterns += staticfiles_urlpatterns()
[9139]30
Note: See TracBrowser for help on using the repository browser.