From 01d85bb9f642d77bef6f6961c8da0f0dee24789d Mon Sep 17 00:00:00 2001 From: qw3rty Date: Tue, 15 Jun 2010 20:45:08 +0000 Subject: [PATCH] removed the / from badges so that all links to badges will work. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@425 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- forum/urls.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/forum/urls.py b/forum/urls.py index 0c36ffe..b92311e 100644 --- a/forum/urls.py +++ b/forum/urls.py @@ -13,10 +13,10 @@ import logging admin.autodiscover() feeds = { -'rss': RssLastestQuestionsFeed + 'rss': RssLastestQuestionsFeed } sitemaps = { -'questions': QuestionsSitemap + 'questions': QuestionsSitemap } APP_PATH = os.path.dirname(__file__) @@ -131,7 +131,7 @@ urlpatterns += patterns('', url(r'^%s(?P\d+)/(?P.+)/$' % _('users/'), app.users.user_stats, name='user_profile'), url(r'^%s$' % _('badges/'), app.meta.badges, name='badges'), - url(r'^%s(?P\d+)/(?P.+)/$' % _('badges/'), app.meta.badge, name='badge'), + url(r'^%s(?P\d+)/(?P.+)$' % _('badges/'), app.meta.badge, name='badge'), # (r'^admin/doc/' % _('admin/doc'), include('django.contrib.admindocs.urls')), url(r'^%s(.*)' % _('nimda/'), admin.site.root, name='osqa_admin'), url(r'^feeds/(?P.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds}, -- 2.39.5