예제 #1
0
    def not_found(self, request):
        """
        Handle all requests that can't be handled by any controller.

        You can open page '/index/blabla' or '/blabla' to see this page.
        """
        data = render_template('index/not_found.html', {
            'requested_path': request.path,
        })
        return Response(data)
예제 #2
0
 def index(self, request):
     """
     Show welcome page of the project.
     """
     data = render_template('index/index.html')
     return Response(data)