Last change
on this file since 9381 was 9358, checked in by rick, 13 years ago |
Starting to make production ready:
- Remove all static / references.
- Added multihost osm-proxy capacities.
- Got the osm-proxy code to a more usefull location.
- Added caching.
|
File size:
844 bytes
|
Line | |
---|
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 | )
|
---|
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 | )
|
---|
21 |
|
---|
22 | urlpatterns += patterns('website.nodelist',
|
---|
23 | url(
|
---|
24 | regex = r'^nodelist/(?P<zoom>\d+),(?P<lat>[0-9.]+),(?P<lon>[0-9.]+)$',
|
---|
25 | view = 'serve_nodelist',
|
---|
26 | name = 'serve_nodelist',
|
---|
27 | ),
|
---|
28 | )
|
---|
29 |
|
---|
30 | urlpatterns += patterns('website.filters',
|
---|
31 | url(r'^filters/$', 'serve_filters'),
|
---|
32 | )
|
---|
Note:
See
TracBrowser
for help on using the repository browser.