3👍
✅
I don’t think you’re appending the actual directory in your django.wsgi
sys.path.append('/home/ubuntu/project/Hera')
sys.path.append('/home/ubuntu/project/Hera/Hera')
these are no longer applicable on your production site
/srv/project/Hera
even better yet get the path in relation to the file something like:
os.path.join(os.path.abspath(os.path.dirname(__file__)), '..')
This way it doesn’t matter where your code lives it will always get the
Source:stackexchange.com