Heroku does not provide the file system used to run the web dynode for users. So you can not copy the file to the server via ssh.
So, you can do this by doing the following two methods:
The best way to do this is to add this egg file to the requirements so that it is installed on the environment during deployment, so it is automatically added to the python path. But this will require the package to be indexed p
Or, commit this file to the code base , so when you deploy the file, it will reach the server. Also, in your project settings file when using django add this file to the python path :
import sys sys.path.append(relative/path/to/file)
source share