Skip to content

Commit

Permalink
Fix that ridiculously stupid RSS bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
idan committed Mar 22, 2011
1 parent a2e384c commit 77924b9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion blog/feeds.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.contrib.syndication.feeds import Feed
from django.contrib.syndication.views import Feed

from blog.models import Post

Expand Down
6 changes: 3 additions & 3 deletions blog/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
'blogpost_detail', name='blogpost_detail'),
)

urlpatterns += patterns ('',
url(r'rss/$', LatestBlogPostFeed, name='blog_rss'),
)
urlpatterns += patterns('',
url(r'rss/$', LatestBlogPostFeed(), name='rss'),
)
2 changes: 1 addition & 1 deletion templates/blog/base.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "standard_layout.html" %}
{% block subtitle %} — Blog{% endblock subtitle %}
{% block extra_head %}
<link rel="alternate" type="application/rss+xml" title="RSS" href="{% url blog:blog_rss %}">
<link rel="alternate" type="application/rss+xml" title="RSS" href="{% url blog:rss %}">
{% endblock extra_head %}

{% block extra_content %}id="blog"{% endblock extra_content %}
Expand Down

0 comments on commit 77924b9

Please sign in to comment.