I need, but not even django not found on container. Installed with dokku 0.8

Posted February 23, 2017 3.7k views

root@probot:/# python db init
python: can’t open file ‘’: [Errno 2] No such file or directory

I also made a request in requirements.txt to django1.9.7 (./var/lib/herokuish/buildpacks/buildpack-python/tests/python-django/requirements.txt)

please help.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

1 answer

It seems like you’re trying to access from the root of the filesystem. Dokku has most likely placed your application’s files somewhere else. Assuming that the path /var/lib/herokuish/buildpacks/buildpack-python/tests/python-django/requirements.txt is on the container, should also be in the same directory. So, you will need to go to that directory first:

cd /var/lib/herokuish/buildpacks/buildpack-python/tests/python-django/

and then run

python db init
Submit an Answer