1. Guilherme Gondim
  2. django-diario

Commits

H3n0xek  committed b6749a2

urls for syndication

--HG--
branch : new_feeds

  • Participants
  • Parent commits be4803e
  • Branches master

Comments (0)

Files changed (5)

File diario/urls/feeds/__init__.py

Empty file added.

File diario/urls/feeds/comments.py

View file
+from django.conf.urls.defaults import *
+
+from diario.feeds.comments import (RssCommentsFeed, RssCommentsByEntryFeed)
+
+urlpatterns = patterns('', 
+               (r'^latest/feed/$', RssCommentsFeed()),
+               (r'^latest/(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/(?P<slug>[-\w]+)/$',
+                    RssCommentsByEntryFeed()),
+)
+                    

File diario/urls/feeds/entires.py

View file
+from django.conf.urls.defaults import *
+
+from diario.feeds.entries import RssEntriesFeed
+
+urlpatterns = patterns('', (r'^latest/feed/$', RssEntriesFeed()), )
+                        

File diario/urls/feeds/entries_by_author.py

View file
+from django.conf.urls.defaults import *
+
+from diario.feeds.entries_by_author import RssEntriesByAuthorFeed
+
+urlpatterns = patterns('', r'^latest/author_(?P<username>\w+)/$', RssEntriesByAuthorFeed())

File diario/urls/feeds/tagged.py

View file
+from django.conf.urls.defaults import *
+
+from diario.feeds.tagged import RssEntriesByTagFeed
+
+urlpatterns = patterns('', '/latest/(?P<tag>\w+)/$', RssEntriesByTagFeed())