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

February 23, 2017 733 views
DigitalOcean Dokku Ubuntu

root@probot:/# python manage.py db init
python: can't open file 'manage.py': [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.

1 Answer

It seems like you're trying to access manage.py 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, manage.py 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 manage.py:

python manage.py db init
Have another answer? Share your knowledge.