From 0f2fa4d72c036d38123b8dfed959ac63b6596214 Mon Sep 17 00:00:00 2001 From: c-bata Date: Fri, 25 Dec 2015 17:19:07 +0900 Subject: [PATCH] Modify a sample code at introduction --- doc/introduction.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/introduction.rst b/doc/introduction.rst index 928f2e692..b0e628a24 100644 --- a/doc/introduction.rst +++ b/doc/introduction.rst @@ -302,7 +302,7 @@ example, to add a page that displays some analytics data from a 3rd-party API:: def index(self): return self.render('analytics_index.html') - admin.add_view(CustomView(name='Analytics', endpoint='analytics')) + admin.add_view(AnalyticsView(name='Analytics', endpoint='analytics')) This will add a link to the navbar for your view. Notice that it is served at '/', the root URL. This is a restriction on standalone views: at