I have installed Django and mod_wsgi-express on an ubuntu 15.10. Basically (notice I did not do this as root):
pip install Django
pip instal
Please try:
import os
import sys
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(BASE_DIR)
os.environ['DJANGO_SETTINGS_MODULE'] = 'YOURAPP.settings'
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "YOURAPP.settings")
This is working for scripts in main project directory, as well ..