Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Replace redirect_to by RedirectView.

  • Loading branch information...
1 parent ff559f6 commit 48556706459aded998e056725505ff37a44e4f53 @aaugustin aaugustin committed
Showing with 2 additions and 3 deletions.
  1. +2 −3 django_www/
5 django_www/
@@ -7,8 +7,7 @@
from django.contrib.sitemaps import views as sitemap_views
from django.views.decorators.cache import cache_page
from django.views.decorators.csrf import csrf_exempt
-from django.views.generic import TemplateView
-from django.views.generic.simple import redirect_to
+from django.views.generic import RedirectView, TemplateView
from accounts import views as account_views
from aggregator.feeds import CommunityAggregatorFeed, CommunityAggregatorFirehoseFeed
@@ -38,7 +37,7 @@
# Feeds
url(r'^rss/weblog/$', WeblogEntryFeed(), name='weblog-feed'),
- url(r'^rss/community/$', redirect_to, {'url': '/rss/community/blogs/'}),
+ url(r'^rss/community/$', RedirectView.as_view(url='/rss/community/blogs/')),
url(r'^rss/community/firehose/$', CommunityAggregatorFirehoseFeed(), name='aggregator-firehose-feed'),
url(r'^rss/community/(?P<slug>[\w-]+)/$', CommunityAggregatorFeed(), name='aggregator-feed'),

0 comments on commit 4855670

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