# HG changeset patch # User Bryan O'Sullivan # Date 1238515105 25200 # Node ID 1735c9699f92a354e7f46a121a656ef489c61662 # Parent 9e8e5292acaae158e2a5019fbee018e804aae452 Accommodate change in Django admin code. diff -r 9e8e5292acaa -r 1735c9699f92 web/hgbook/urls.py --- a/web/hgbook/urls.py Fri Mar 27 00:41:15 2009 -0700 +++ b/web/hgbook/urls.py Tue Mar 31 08:58:25 2009 -0700 @@ -1,6 +1,9 @@ import os from django.conf.urls.defaults import * import hgbook.comments.feeds as feeds +from django.contrib import admin + +admin.autodiscover() feeds = { 'comments': feeds.Comments, @@ -18,5 +21,5 @@ # sys.modules[__name__].__file__) + '/../../en/html'), # Uncomment this for admin: - (r'^admin/', include('django.contrib.admin.urls')), + (r'^admin/(.*)', admin.site.root), )