From 1dce3d3892b9820f7b6c90ee9749ab36810554a0 Mon Sep 17 00:00:00 2001 From: umihico Date: Wed, 24 Jun 2020 10:26:04 +0900 Subject: [PATCH] modify sls handler to refer django --- serverless.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/serverless.yml b/serverless.yml index 951c6b4..007f422 100644 --- a/serverless.yml +++ b/serverless.yml @@ -29,6 +29,9 @@ custom: createRoute53Record: true endpointType: 'edge' securityPolicy: tls_1_2 + wsgi: + app: django_sls_helloworld.wsgi.application + packRequirements: false provider: name: aws @@ -69,7 +72,7 @@ provider: functions: hello: - handler: handler.hello + handler: wsgi_handler.handler # The following are a few example events you can configure # NOTE: Please make sure to change your handler code to work with those events # Check the event documentation for details