summaryrefslogtreecommitdiff
path: root/base_urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'base_urls.py')
-rw-r--r--base_urls.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/base_urls.py b/base_urls.py
index 95e4b8f..6e9e4ca 100644
--- a/base_urls.py
+++ b/base_urls.py
@@ -5,8 +5,9 @@ from django.views.generic.simple import redirect_to,direct_to_template
from django.contrib.sitemaps import FlatPageSitemap
from django.conf import settings
-from blog.models import BlogSitemap
+from blog.models import BlogSitemap,LatestFull
from locations.models import WritingbyLocationSitemap
+from links.models import LatestLinks
admin.autodiscover()
@@ -16,6 +17,10 @@ sitemaps = {
'flatpages': FlatPageSitemap,
#'locations': WritingbyLocationSitemap
}
+feeds = {
+ 'writing': LatestFull,
+ 'fblinks' : LatestLinks,
+}
# old page redirects
@@ -32,6 +37,7 @@ if settings.DEVELOPMENT:
)
urlpatterns += patterns('',
+ (r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds}),
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
(r'^admin/(.*)', admin.site.root),
(r'^robots.txt$', direct_to_template, {'template': 'archives/robots.html'}),