Message ID | 1306470094-16960-2-git-send-email-lmr@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Fri, 2011-05-27 at 10:53 -0400, vyanktesh yadav wrote: > Hi , > > [Please see screen shot too..] > > I am facing Template syntax error while trying to do add hosts in > admin > interface. Yeah, some of the custom template logic present on the application is being slashed by the internal changes of the admin module. And I thought 1.3 was supposed to be mostly compatible API wise with 1.1. What a mistake... I've fixed this problem on my local git repo, but there are other things that came up to address. I will work more on the port and publish another patchset, after proper testing is made. Thanks for trying and sorry for the hassle, Lucas > Facing this error with the latest autotest.git and latest Django's > syncdb. > > TemplateSyntaxError at /afe/server/admin/afe/host/add/ > Caught an exception while rendering: > > In > template > /usr/localtest/autotest/site-packages/django/contrib/admin/templates/admin/includes/fieldset.html, > error at line 12 > > also In > > TemplateSyntaxError at /afe/server/admin/afe/aclgroup/add/ > Caught an exception while rendering: > > > > Please let me know any patch is available for this issue? > > Thanks & Regards, > Vyanktesh Yadav > -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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')),
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 <lmr@redhat.com> --- frontend/urls.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)