Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

modificações para funcionar os feeds

  • Loading branch information...
commit 73b6c7fa4d34387745652085a34a3c6c4564f310 1 parent c3a8862
@douglasmiranda authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.