Line | |
---|
1 | from django.conf.urls.defaults import *
|
---|
2 | from django.contrib.staticfiles.urls import staticfiles_urlpatterns
|
---|
3 | from django.views.generic.simple import redirect_to
|
---|
4 |
|
---|
5 | # Uncomment the next two lines to enable the admin:
|
---|
6 | from django.contrib import admin
|
---|
7 | from django.conf import settings
|
---|
8 | admin.autodiscover()
|
---|
9 |
|
---|
10 |
|
---|
11 | urlpatterns = 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 |
|
---|
19 | urlpatterns += 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 |
|
---|
28 | if settings.DEBUG:
|
---|
29 | urlpatterns += staticfiles_urlpatterns()
|
---|
30 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.