Report this

What is the reason for this report?

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

Posted on February 23, 2017

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.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.