Changeset 9397 for src


Ignore:
Timestamp:
Jul 12, 2011, 3:57:38 PM (14 years ago)
Author:
rick
Message:

I hate robots, crawling the osm-proxy or other pictures. Waste of bandwidth.

Location:
src/django_gheat
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/urls.py

    r9388 r9397  
    11from django.conf.urls.defaults import *
    22from django.contrib.staticfiles.urls import staticfiles_urlpatterns
    3 from django.views.generic.simple import redirect_to
     3from django.views.decorators.cache import cache_page
     4from django.views.generic.simple import redirect_to, direct_to_template
    45
    56# Uncomment the next two lines to enable the admin:
     
    1112urlpatterns = patterns('',
    1213    # Example:
     14    (r'^robots.txt$', cache_page(60 * 15)(direct_to_template), {'template' : 'robots.txt', 'mimetype' : 'text/plain'}),
    1315    (r'^$', redirect_to, { 'url' : 'wlheatmap/', 'permanent' : False }),
    1416    (r'^wlheatmap/', include('wlheatmap.urls')),
Note: See TracChangeset for help on using the changeset viewer.