Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Remove dead code. This isn't wired in any URLconf.

  • Loading branch information...
commit 1fffdb60aa4eb875bfbd961773d0cf5066dc38e2 1 parent 121f9bd
Aymeric Augustin authored February 06, 2013

Showing 1 changed file with 0 additions and 25 deletions. Show diff stats Hide diff stats

  1. 25  django_website/views.py
25  django_website/views.py
... ...
@@ -1,30 +1,5 @@
1  
-"""
2  
-Misc. views.
3  
-"""
4  
-from __future__ import absolute_import
5  
-
6  
-from django.contrib.comments.models import Comment
7  
-from django.contrib.sitemaps import views as sitemap_views
8 1
 from django.shortcuts import render
9  
-from django.views.decorators.cache import cache_page
10 2
 from django.views.decorators.csrf import requires_csrf_token
11  
-from django.views.generic import list_detail
12  
-
13  
-from .sitemaps import FlatPageSitemap, WeblogSitemap
14  
-
15  
-@cache_page(60*60*6)
16  
-def sitemap(request):
17  
-    return sitemap_views.sitemap(request, sitemaps={
18  
-        'weblog': WeblogSitemap,
19  
-        'flatpages': FlatPageSitemap,
20  
-    })
21  
-
22  
-def comments(request):
23  
-    return list_detail.object_list(
24  
-        request,
25  
-        queryset = Comment.objects.filter(is_public=True).order_by('-submit_date'),
26  
-        paginate_by = 30,
27  
-    )
28 3
 
29 4
 @requires_csrf_token
30 5
 def server_error(request, template_name='500.html'):

0 notes on commit 1fffdb6

Please sign in to comment.
Something went wrong with that request. Please try again.