From 67d1c37bf8bb05cf1b3ebebf88b6ac5d3b5b07a2 Mon Sep 17 00:00:00 2001 From: hernani Date: Thu, 7 Apr 2011 11:26:35 +0000 Subject: [PATCH] Django 1.3 fix. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@941 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- forum/urls.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/forum/urls.py b/forum/urls.py index 75e40e4..b5038c0 100644 --- a/forum/urls.py +++ b/forum/urls.py @@ -18,9 +18,13 @@ sitemaps = { APP_PATH = os.path.dirname(__file__) +try: + admin_url = url(r'^%s(.*)' % _('nimda/'), admin.site.root) +except ImportError: + admin_url = url(r'^%s(.*)' % _('nimda/'), admin.site.urls) + core_urls = ( - url(r'^$', app.readers.index, name='index'), - url(r'^%s(.*)' % _('nimda/'), admin.site.root), + url(r'^$', app.readers.index, name='index'), admin_url, url(r'^sitemap.xml$', 'forum.sitemap.index', {'sitemaps': sitemaps}), url(r'^sitemap-(?P
.+)\.xml$', 'forum.sitemap.sitemap', {'sitemaps': sitemaps}), -- 2.39.5