Skip to content

Commit

Permalink
fix: disable wsgi warmup (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
alubbock authored Sep 3, 2024
1 parent a04f284 commit 8888fcf
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions thunordjango/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,8 @@
"""

import os
import sys
from django.core.wsgi import get_wsgi_application
from django.conf import settings

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "thunordjango.settings")

application = get_wsgi_application()

application({
'REQUEST_METHOD': 'GET',
'SERVER_NAME': '127.0.0.1',
'SERVER_PORT': 8080,
'PATH_INFO': '/warmup/',
'HTTP_HOST': settings.HOSTNAME,
'wsgi.input': sys.stdin,
}, lambda x, y: None) # call the entry-point function

0 comments on commit 8888fcf

Please sign in to comment.