public
Description: my personal blog written with django
Homepage: http://oebfare.com
Clone URL: git://github.com/brosner/oebfare.git
Search Repo:
moved feed links into their own apps to be compatible with old site.
brosner (author)
Thu Jan 24 18:40:17 -0800 2008
commit  ec50c08eda69469c3c70dd64e095f25e01ad22d1
tree    9d13672a5e61d588a83af2a73efb32a50a9fe31d
parent  d6b0c5763a9b6c1d8644a3536da91ee1a4fb774d
...
3
4
5
 
 
 
 
 
 
6
7
8
...
16
17
18
 
 
 
 
19
20
21
...
3
4
5
6
7
8
9
10
11
12
13
14
...
22
23
24
25
26
27
28
29
30
31
0
@@ -3,6 +3,12 @@ from django.conf.urls.defaults import *
0
 from django.views.generic.date_based import *
0
 
0
 from oebfare.blog.models import Post
0
+from oebfare.blog.feeds import LatestPostFeed, LatestPostsByTagFeed
0
+
0
+feeds = {
0
+ "latest": LatestPostFeed,
0
+ "tags": LatestPostsByTagFeed,
0
+}
0
 
0
 date_based_dict = {
0
     "queryset": Post.objects.all(),
0
@@ -16,6 +22,10 @@ urlpatterns = patterns("",
0
         "related_tags": True,
0
     }, name="blog_tag_detail"),
0
     
0
+ url(r"^feeds/(?P<url>.*)/$", "django.contrib.syndication.views.feed", {
0
+ "feed_dict": feeds,
0
+ }, name="blog_feeds"),
0
+
0
     url(r"^(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/(?P<slug>[-\w]+)/$",
0
         object_detail, dict(date_based_dict, **{
0
             "template_object_name": "post",
...
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 
21
22
23
...
2
3
4
 
 
 
 
 
 
 
 
 
5
6
7
8
 
 
 
9
10
11
12
0
@@ -2,22 +2,11 @@
0
 from django.conf import settings
0
 from django.conf.urls.defaults import *
0
 
0
-from oebfare.blog.feeds import LatestPostFeed, LatestPostsByTagFeed
0
-from oebfare.links.feeds import LatestLinkFeed
0
-
0
-feeds = {
0
- "latest": LatestPostFeed,
0
- "tags": LatestPostsByTagFeed,
0
- "links": LatestLinkFeed,
0
-}
0
-
0
 urlpatterns = patterns("",
0
     url(r"^admin/", include("django.contrib.admin.urls")),
0
     url(r"^blog/", include("oebfare.blog.urls")),
0
     url(r"^comments/", include("django.contrib.comments.urls.comments")),
0
- url(r"^feeds/(?P<url>.*)/$", "django.contrib.syndication.views.feed", {
0
- "feed_dict": feeds,
0
- }),
0
+ url(r"^links/", include("oebfare.links.urls")),
0
     url(r"^$", "oebfare.blog.views.homepage", name="oebfare_home"),
0
 )
0
 

Comments

    No one has commented yet.