Skip to content

Commit

Permalink
Setting the IS_RUNNING_UNDER_MOD_WSGI flag
Browse files Browse the repository at this point in the history
Setting the `IS_RUNNING_UNDER_MOD_WSGI` flag
  • Loading branch information
rushirajnenuji committed Mar 5, 2021
1 parent f4a7dfe commit 81ce02d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apache/django.wsgi
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import os.path
import sys
import os

os.environ['IS_RUNNING_UNDER_MOD_WSGI'] = 'true'
sys.path.append(os.path.split(os.path.split(os.path.abspath(__file__))[0])[0])

from django.core.wsgi import get_wsgi_application
Expand Down

0 comments on commit 81ce02d

Please sign in to comment.