[cmsiki-svn] SF.net SVN: cmsiki: [7] trunk/cmsiki/urls.py
Status: Pre-Alpha
Brought to you by:
cnu
|
From: <cn...@us...> - 2007-03-24 16:08:39
|
Revision: 7
http://cmsiki.svn.sourceforge.net/cmsiki/?rev=7&view=rev
Author: cnu
Date: 2007-03-24 09:08:37 -0700 (Sat, 24 Mar 2007)
Log Message:
-----------
Added category link to post
Modified Paths:
--------------
trunk/cmsiki/urls.py
Modified: trunk/cmsiki/urls.py
===================================================================
--- trunk/cmsiki/urls.py 2007-03-24 12:03:56 UTC (rev 6)
+++ trunk/cmsiki/urls.py 2007-03-24 16:08:37 UTC (rev 7)
@@ -1,5 +1,5 @@
from django.conf.urls.defaults import *
-from cmsiki.apps.story.models import Story
+from cmsiki.apps.story.models import *
from django.conf import settings
info_dict = {
@@ -15,7 +15,8 @@
# Uncomment this for admin:
(r'^admin/', include('django.contrib.admin.urls')),
# (r'^(?P<year>\d{4})/(?P<month>[a-z]{3})/(?P<day>\w{1,2})/(?P<slug>[-\w]+)/$', 'object_detail', dict(info_dict, slug_field='slug')),
- (r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{1,2})/(?P<slug>[-\w]+)/$', 'object_detail', dict(info_dict, month_format='%m', slug_field='slug')),
+ (r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{1,2})/(?P<slug>[-\w]+)/$', 'object_detail',\
+ dict(info_dict, month_format='%m', slug_field='slug',extra_context={'categories':Category.objects.all()})),
(r'^(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{1,2})/$', 'archive_day', dict(info_dict, month_format='%m')),
(r'^(?P<year>\d{4})/(?P<month>\d{2})/$', 'archive_month', dict(info_dict, month_format='%m')),
(r'^(?P<year>\d{4})/$', 'archive_year', info_dict),
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|