From patchwork Fri May 27 04:21:29 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Meneghel Rodrigues X-Patchwork-Id: 822812 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p4R4Lj0w028310 for ; Fri, 27 May 2011 04:21:50 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751036Ab1E0EVm (ORCPT ); Fri, 27 May 2011 00:21:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:21933 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750777Ab1E0EVl (ORCPT ); Fri, 27 May 2011 00:21:41 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p4R4LeAl014286 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 27 May 2011 00:21:41 -0400 Received: from justice.redhat.com (vpn-10-216.rdu.redhat.com [10.11.10.216]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p4R4LaML004814; Fri, 27 May 2011 00:21:39 -0400 From: Lucas Meneghel Rodrigues To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, Lucas Meneghel Rodrigues Subject: [PATCH 1/6] Update admin site URL dispatcher to Django 1.3 Date: Fri, 27 May 2011 01:21:29 -0300 Message-Id: <1306470094-16960-2-git-send-email-lmr@redhat.com> In-Reply-To: <1306470094-16960-1-git-send-email-lmr@redhat.com> References: <1306470094-16960-1-git-send-email-lmr@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 27 May 2011 04:21:50 +0000 (UTC) admin.site.root does not exist under Django 1.3 anymore. Use, therefore, the current idiom to specify the admin URL. Signed-off-by: Lucas Meneghel Rodrigues --- frontend/urls.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/frontend/urls.py b/frontend/urls.py index 7f18fec..5c50f51 100644 --- a/frontend/urls.py +++ b/frontend/urls.py @@ -15,7 +15,7 @@ handler500 = 'frontend.afe.views.handler500' urlpatterns = defaults.patterns( '', - (RE_PREFIX + r'admin/(.*)', admin.site.root), + (RE_PREFIX + r'admin/', defaults.include(admin.site.urls)), (RE_PREFIX, defaults.include('frontend.afe.urls')), (TKO_RE_PREFIX, defaults.include('frontend.tko.urls')), (PLANNER_RE_PREFIX, defaults.include('frontend.planner.urls')),