Commit 6ae7f606 authored by Serge S. Koval's avatar Serge S. Koval

Added disclaimer about default view.

parent 9e0da16f
...@@ -84,6 +84,13 @@ Now, lets add a view. To do this, you need to derive from `BaseView` class:: ...@@ -84,6 +84,13 @@ Now, lets add a view. To do this, you need to derive from `BaseView` class::
If you will run this example, you will see that menu has two items: Home and Hello. If you will run this example, you will see that menu has two items: Home and Hello.
Each view should have default page - view method with '/' url. Following view class won't work::
class MyView(BaseView):
@expose('/index/')
def index(self):
return self.render('index.html')
Now, create `templates` directory and then create new `index.html` file with following content:: Now, create `templates` directory and then create new `index.html` file with following content::
{% extends 'admin/master.html' %} {% extends 'admin/master.html' %}
......
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