- Timestamp:
- Jul 12, 2011, 3:57:38 PM (14 years ago)
- Location:
- src/django_gheat
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/django_gheat/urls.py
r9388 r9397 1 1 from django.conf.urls.defaults import * 2 2 from django.contrib.staticfiles.urls import staticfiles_urlpatterns 3 from django.views.generic.simple import redirect_to 3 from django.views.decorators.cache import cache_page 4 from django.views.generic.simple import redirect_to, direct_to_template 4 5 5 6 # Uncomment the next two lines to enable the admin: … … 11 12 urlpatterns = patterns('', 12 13 # Example: 14 (r'^robots.txt$', cache_page(60 * 15)(direct_to_template), {'template' : 'robots.txt', 'mimetype' : 'text/plain'}), 13 15 (r'^$', redirect_to, { 'url' : 'wlheatmap/', 'permanent' : False }), 14 16 (r'^wlheatmap/', include('wlheatmap.urls')),
Note:
See TracChangeset
for help on using the changeset viewer.