0👍
✅
You can set the home directories via MEDIA_URL
/or symlink itself.
I think of a combined aproach of symlink and os.system calls.
what-is-symlinking-and-how-can-learn-i-how-to-to-do-this
To change the apache user, use os.system(su <command>)
changing-user-in-python
Source:stackexchange.com