Use Uvicorn for production with Nginx
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import logging
|
||||
from asyncio import sleep
|
||||
|
||||
import stripe
|
||||
from django.conf import settings
|
||||
@@ -21,7 +22,8 @@ logger = logging.getLogger(__name__)
|
||||
class Home(View):
|
||||
template_name = "index.html"
|
||||
|
||||
def get(self, request):
|
||||
async def get(self, request):
|
||||
# await sleep(1)
|
||||
return render(request, self.template_name)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user