Last change
on this file since 9381 was 9376, checked in by rick, 14 years ago |
Rename the kind-of-meaningless-named django app website to a more meaningfull name wlheatmap
|
File size:
805 bytes
|
Rev | Line | |
---|
[9139] | 1 | from django.conf.urls.defaults import *
|
---|
| 2 | from django.contrib.staticfiles.urls import staticfiles_urlpatterns
|
---|
[9367] | 3 | from django.views.generic.simple import redirect_to
|
---|
[9139] | 4 |
|
---|
| 5 | # Uncomment the next two lines to enable the admin:
|
---|
| 6 | from django.contrib import admin
|
---|
| 7 | admin.autodiscover()
|
---|
| 8 |
|
---|
| 9 | urlpatterns = patterns('',
|
---|
| 10 | # Example:
|
---|
[9376] | 11 | (r'^$', redirect_to, { 'url' : 'wlheatmap/', 'permanent' : False }),
|
---|
| 12 | (r'^wlheatmap/', include('wlheatmap.urls')),
|
---|
[9139] | 13 | (r'^gheat/', include('gheat.urls')),
|
---|
| 14 | (r'^admin/', include(admin.site.urls)),
|
---|
| 15 | )
|
---|
[9358] | 16 |
|
---|
[9376] | 17 | urlpatterns += patterns('wlheatmap.osm_proxy',
|
---|
[9358] | 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 |
|
---|
[9139] | 26 | urlpatterns += staticfiles_urlpatterns()
|
---|
| 27 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.