Change os.path.basename to os.path.dirname when building paths in settings.py. basename doesn't seem to work when hosted via mod_wsgi and dirname makes more sense anyway.