Last change
on this file since 9214 was 9213, checked in by dennisw, 14 years ago |
Added nodelist to layout again. Progress on filters (remains of useless code may still be there, will clean up later when filters work as planned).
|
File size:
1.1 KB
|
Rev | Line | |
---|
[9139] | 1 | from django.conf.urls.defaults import *
|
---|
| 2 | from django.views.generic.simple import direct_to_template
|
---|
| 3 | from django.views.generic.base import TemplateView
|
---|
| 4 | from django.conf import settings
|
---|
| 5 |
|
---|
| 6 | class HomeView(TemplateView):
|
---|
| 7 | template_name = 'home.html'
|
---|
| 8 |
|
---|
| 9 | urlpatterns = patterns('',
|
---|
| 10 | ('^$', HomeView.as_view())
|
---|
| 11 | )
|
---|
[9147] | 12 |
|
---|
| 13 | urlpatterns += patterns('website.tile',
|
---|
| 14 | url(
|
---|
| 15 | # Example : today/fire/12/3,2.png
|
---|
| 16 | regex = r'^tile/(?P<zoom>\d+)/(?P<x>\d+),(?P<y>\d+).png$',
|
---|
| 17 | view = 'serve_tile',
|
---|
| 18 | name = 'serve_tile',
|
---|
| 19 | ),
|
---|
| 20 | )
|
---|
[9177] | 21 |
|
---|
[9189] | 22 | urlpatterns += patterns('website.osm_proxy',
|
---|
| 23 | url(
|
---|
| 24 | # Example : today/fire/12/3,2.png
|
---|
| 25 | regex = r'^osm-proxy/(?P<zoom>\d+)/(?P<x>\d+),(?P<y>\d+).png$',
|
---|
| 26 | view = 'osm_proxy',
|
---|
| 27 | name = 'osm_proxy',
|
---|
| 28 | ),
|
---|
| 29 | )
|
---|
| 30 |
|
---|
[9177] | 31 | urlpatterns += patterns('website.nodelist',
|
---|
| 32 | url(
|
---|
[9196] | 33 | regex = r'^nodelist/(?P<zoom>\d+),(?P<lat>[0-9.]+),(?P<lon>[0-9.]+)$',
|
---|
[9177] | 34 | view = 'serve_nodelist',
|
---|
| 35 | name = 'serve_nodelist',
|
---|
| 36 | ),
|
---|
| 37 | )
|
---|
[9213] | 38 |
|
---|
| 39 | urlpatterns += patterns('website.filters',
|
---|
| 40 | url(
|
---|
| 41 | regex = r'^filters$',
|
---|
| 42 | view = 'serve_filters',
|
---|
| 43 | name = 'serve_filters',
|
---|
| 44 | ),
|
---|
| 45 | )
|
---|
Note:
See
TracBrowser
for help on using the repository browser.