From 5c1ef2c1cfabcadbc7d4527d05d654e7ad23ab17 Mon Sep 17 00:00:00 2001 From: Romano Bodha Date: Fri, 23 Dec 2016 01:42:05 +0100 Subject: [PATCH] Fixed import error --- docs/class_based_views.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/class_based_views.md b/docs/class_based_views.md index 223304ae..ee410b1d 100644 --- a/docs/class_based_views.md +++ b/docs/class_based_views.md @@ -6,6 +6,7 @@ Sanic has simple class based implementation. You should implement methods(get, p ```python from sanic import Sanic from sanic.views import HTTPMethodView +from sanic.response import text app = Sanic('some_name')