source: src/django_gheat/website/urls.py@ 9158

Last change on this file since 9158 was 9147, checked in by rick, 14 years ago

Alternative heatmap generation 'framework'. Simple/Single file with no
persistent storage, making debugging easy.

This proves that the heatmap code itself is not causing the issues, but the
image manipulation PIL is not so fast (or properly utilized). Might want to
consider a more advanced image generation toolkit. (2000 entries: 5+ secs).

Also loading a large dataset into Objects seems to be very slow. The database
call is effient (just a single one), but building all the related objects,
makes is slow (2000 entries: 1+ sec). Might want to check if raw queries suit
to avoid conversion our needs:

http://docs.djangoproject.com/en/dev/topics/db/sql/

File size: 540 bytes
Line 
1from django.conf.urls.defaults import *
2from django.views.generic.simple import direct_to_template
3from django.views.generic.base import TemplateView
4from django.conf import settings
5
6class HomeView(TemplateView):
7 template_name = 'home.html'
8
9urlpatterns = patterns('',
10 ('^$', HomeView.as_view())
11)
12
13urlpatterns += 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 )
Note: See TracBrowser for help on using the repository browser.