Last change
on this file since 9358 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:
674 bytes
|
Line | |
---|
1 | from django.conf.urls.defaults import *
|
---|
2 | from django.contrib.staticfiles.urls import staticfiles_urlpatterns
|
---|
3 |
|
---|
4 | # Uncomment the next two lines to enable the admin:
|
---|
5 | from django.contrib import admin
|
---|
6 | admin.autodiscover()
|
---|
7 |
|
---|
8 | urlpatterns = patterns('',
|
---|
9 | # Example:
|
---|
10 | (r'^website/', include('website.urls')),
|
---|
11 | (r'^gheat/', include('gheat.urls')),
|
---|
12 | (r'^admin/', include(admin.site.urls)),
|
---|
13 | )
|
---|
14 |
|
---|
15 | urlpatterns += patterns('website.osm_proxy',
|
---|
16 | url(
|
---|
17 | # Example : today/fire/12/3,2.png
|
---|
18 | regex = r'^osm-proxy/(?P<zoom>\d+)/(?P<x>\d+),(?P<y>\d+).png$',
|
---|
19 | view = 'osm_proxy',
|
---|
20 | name = 'osm_proxy',
|
---|
21 | ),
|
---|
22 | )
|
---|
23 |
|
---|
24 | urlpatterns += staticfiles_urlpatterns()
|
---|
25 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.