source: src/django_gheat/urls.py@ 9358

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 
1from django.conf.urls.defaults import *
2from django.contrib.staticfiles.urls import staticfiles_urlpatterns
3
4# Uncomment the next two lines to enable the admin:
5from django.contrib import admin
6admin.autodiscover()
7
8urlpatterns = patterns('',
9 # Example:
10 (r'^website/', include('website.urls')),
11 (r'^gheat/', include('gheat.urls')),
12 (r'^admin/', include(admin.site.urls)),
13)
14
15urlpatterns += 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
24urlpatterns += staticfiles_urlpatterns()
25
Note: See TracBrowser for help on using the repository browser.