Rev | Line | |
---|
[9139] | 1 | from django.conf.urls.defaults import *
|
---|
| 2 | from django.contrib.staticfiles.urls import staticfiles_urlpatterns
|
---|
[9367] | 3 | from django.views.generic.simple import redirect_to
|
---|
[9139] | 4 |
|
---|
| 5 | # Uncomment the next two lines to enable the admin:
|
---|
| 6 | from django.contrib import admin
|
---|
[9388] | 7 | from django.conf import settings
|
---|
[9139] | 8 | admin.autodiscover()
|
---|
| 9 |
|
---|
[9386] | 10 |
|
---|
[9139] | 11 | urlpatterns = patterns('',
|
---|
| 12 | # Example:
|
---|
[9376] | 13 | (r'^$', redirect_to, { 'url' : 'wlheatmap/', 'permanent' : False }),
|
---|
| 14 | (r'^wlheatmap/', include('wlheatmap.urls')),
|
---|
[9139] | 15 | (r'^gheat/', include('gheat.urls')),
|
---|
| 16 | (r'^admin/', include(admin.site.urls)),
|
---|
| 17 | )
|
---|
[9358] | 18 |
|
---|
[9376] | 19 | urlpatterns += patterns('wlheatmap.osm_proxy',
|
---|
[9358] | 20 | url(
|
---|
| 21 | # Example : today/fire/12/3,2.png
|
---|
| 22 | regex = r'^osm-proxy/(?P<zoom>\d+)/(?P<x>\d+),(?P<y>\d+).png$',
|
---|
| 23 | view = 'osm_proxy',
|
---|
| 24 | name = 'osm_proxy',
|
---|
| 25 | ),
|
---|
| 26 | )
|
---|
| 27 |
|
---|
[9388] | 28 | if settings.DEBUG:
|
---|
[9386] | 29 | urlpatterns += staticfiles_urlpatterns()
|
---|
[9139] | 30 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.