Permalink
Browse files

modificações para funcionar os feeds

  • Loading branch information...
1 parent c3a8862 commit 73b6c7fa4d34387745652085a34a3c6c4564f310 @douglasmiranda committed Jul 6, 2012
Showing with 7 additions and 3 deletions.
  1. +1 −1 douglasmiranda/blog/feeds.py
  2. +5 −1 douglasmiranda/settings.py
  3. +1 −1 douglasmiranda/urls.py
  4. 0 manage.py
View
2 douglasmiranda/blog/feeds.py
@@ -1,4 +1,4 @@
-from django.contrib.syndication.feeds import Feed
+from django.contrib.syndication.views import Feed
from douglasmiranda.blog.models import Artigo
View
6 douglasmiranda/settings.py
@@ -1,5 +1,5 @@
+# coding: utf-8
# Django settings for douglasmiranda project.
-import os
from utils.path import abspath
DEBUG = True
@@ -204,3 +204,7 @@
# configuracoes adicionais do grappelli
GRAPPELLI_ADMIN_HEADLINE = u'Douglas Miranda'
GRAPPELLI_ADMIN_TITLE = u'Douglas Miranda'
+try:
+ from local_settings import *
+except:
+ pass
View
2 douglasmiranda/urls.py
@@ -17,7 +17,7 @@
url(r'^me/', TemplateView.as_view(template_name='me.html'), name='projeto-me'),
(r'^labs/', include('douglasmiranda.labs.urls')),
(r'^artigo/', include('douglasmiranda.blog.urls')),
- (r'^rss/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': {'ultimos': UltimosArtigos}}),
+ (r'^rss/(?P<url>.*)/$', UltimosArtigos(), {'feed_dict': {'ultimos': UltimosArtigos}}),
# sirvo os arquivos estaticos do admin com o Django,
View
0 manage.py 100644 → 100755
File mode changed.

0 comments on commit 73b6c7f

Please sign in to comment.