
import os

from django.core.wsgi import get_wsgi_application

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

application = get_wsgi_application()


import os
import sys

sys.path.append(os.path.abspath(os.path.join(__file__, '../..')))

from django.core.wsgi import get_wsgi_application

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

application = get_wsgi_application()

Append source path in WSGI mode.
Append source path in WSGI mode.

  
  import os
+ import sys
+ 
+ sys.path.append(os.path.abspath(os.path.join(__file__, '../..')))
  
  from django.core.wsgi import get_wsgi_application
  
  os.environ.setdefault("DJANGO_SETTINGS_MODULE", "attendance.settings")
  
  application = get_wsgi_application()
  
Append source path in WSGI mode.
## Code Before:

import os

from django.core.wsgi import get_wsgi_application

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

application = get_wsgi_application()

## Instruction:
Append source path in WSGI mode.
## Code After:

import os
import sys

sys.path.append(os.path.abspath(os.path.join(__file__, '../..')))

from django.core.wsgi import get_wsgi_application

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

application = get_wsgi_application()
