Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Replace redirect_to by RedirectView.

  • Loading branch information...
commit 48556706459aded998e056725505ff37a44e4f53 1 parent ff559f6
Aymeric Augustin authored February 07, 2013

Showing 1 changed file with 2 additions and 3 deletions. Show diff stats Hide diff stats

  1. 5  django_www/urls.py
5  django_www/urls.py
@@ -7,8 +7,7 @@
7 7
 from django.contrib.sitemaps import views as sitemap_views
8 8
 from django.views.decorators.cache import cache_page
9 9
 from django.views.decorators.csrf import csrf_exempt
10  
-from django.views.generic import TemplateView
11  
-from django.views.generic.simple import redirect_to
  10
+from django.views.generic import RedirectView, TemplateView
12 11
 
13 12
 from accounts import views as account_views
14 13
 from aggregator.feeds import CommunityAggregatorFeed, CommunityAggregatorFirehoseFeed
@@ -38,7 +37,7 @@
38 37
 
39 38
     # Feeds
40 39
     url(r'^rss/weblog/$', WeblogEntryFeed(), name='weblog-feed'),
41  
-    url(r'^rss/community/$', redirect_to, {'url': '/rss/community/blogs/'}),
  40
+    url(r'^rss/community/$', RedirectView.as_view(url='/rss/community/blogs/')),
42 41
     url(r'^rss/community/firehose/$', CommunityAggregatorFirehoseFeed(), name='aggregator-firehose-feed'),
43 42
     url(r'^rss/community/(?P<slug>[\w-]+)/$', CommunityAggregatorFeed(), name='aggregator-feed'),
44 43
 

0 notes on commit 4855670

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