Commit 0f2fa4d7 authored by c-bata's avatar c-bata

Modify a sample code at introduction

parent 29f33bb6
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment