import os
import sys
from django.core.handlers.wsgi import WSGIHandler
sys.stdout = sys.stderr
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)) + '/../')

os.environ['DJANGO_SETTINGS_MODULE'] = 'smart_meds_app.settings'

class AdjEnvironMiddleware:

  def __init__(self, application):
    self.application = application

  def __call__(self, environ, start_response):
    environ['RAW_PATH_INFO'] = environ['PATH_INFO']

    def _start_response(status, headers):
      return start_response(status, headers)

    return self.application(environ, _start_response)

application = AdjEnvironMiddleware(WSGIHandler())

import os
import sys
from django.core.handlers.wsgi import WSGIHandler
sys.stdout = sys.stderr
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)))
sys.path.insert(0, os.path.abspath(os.path.dirname(__file__)) + '/../')

os.environ['DJANGO_SETTINGS_MODULE'] = 'smart_sample_apps.settings'

class AdjEnvironMiddleware:

  def __init__(self, application):
    self.application = application

  def __call__(self, environ, start_response):
    environ['RAW_PATH_INFO'] = environ['PATH_INFO']

    def _start_response(status, headers):
      return start_response(status, headers)

    return self.application(environ, _start_response)

application = AdjEnvironMiddleware(WSGIHandler())

Rename project in django wsgi module