source: src/django_gheat/urls.py@ 9373

Last change on this file since 9373 was 9367, checked in by rick, 14 years ago

Default to the website entry point

File size: 797 bytes
Line 
1from django.conf.urls.defaults import *
2from django.contrib.staticfiles.urls import staticfiles_urlpatterns
3from django.views.generic.simple import redirect_to
4
5# Uncomment the next two lines to enable the admin:
6from django.contrib import admin
7admin.autodiscover()
8
9urlpatterns = patterns('',
10 # Example:
11 (r'^$', redirect_to, { 'url' : 'website/', 'permanent' : False }),
12 (r'^website/', include('website.urls')),
13 (r'^gheat/', include('gheat.urls')),
14 (r'^admin/', include(admin.site.urls)),
15)
16
17urlpatterns += patterns('website.osm_proxy',
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
26urlpatterns += staticfiles_urlpatterns()
27
Note: See TracBrowser for help on using the repository browser.