From 9add7f472830e0ff4534125ea2ab5dca0c3d1e80 Mon Sep 17 00:00:00 2001 From: Amitay Date: Mon, 23 May 2022 14:56:15 +0300 Subject: [PATCH 1/2] changed app name to match sanic requirements It seems that Sanic has a pretty strict naming policy which doesn't allow spaces and/or comma or similar characters in the app name following is the exception raised when using the current name as appears in the manual: `sanic.exceptions.SanicException: Sanic instance named 'Hello World App' uses an invalid format. Names must begin with a character and may only contain alphanumeric characters, _, or -. ` --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 316c323d73..85313cb438 100644 --- a/README.rst +++ b/README.rst @@ -114,7 +114,7 @@ Hello World Example from sanic import Sanic from sanic.response import json - app = Sanic("My Hello, world app") + app = Sanic("MyHelloWorldApp") @app.route('/') async def test(request): From 56a97b1759755025bb6868115fcbc24808763307 Mon Sep 17 00:00:00 2001 From: Amitay Date: Mon, 23 May 2022 14:58:06 +0300 Subject: [PATCH 2/2] changed app name to a more readable form now the name is both valid and readable --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 85313cb438..5b96357d0f 100644 --- a/README.rst +++ b/README.rst @@ -114,7 +114,7 @@ Hello World Example from sanic import Sanic from sanic.response import json - app = Sanic("MyHelloWorldApp") + app = Sanic("my-hello-world-app") @app.route('/') async def test(request):