Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In my experience I have to reference the local path to a python file when using manage.py

`python manage.py runserver` becomes `python ./manage.py runserver`

But your mileage may vary.



Are you doing anything funky with the file or the file system? Windows, Linux or Mac OS? There should be no need to do what you are saying.

Perhaps you are trying to run "./manage.py runserver" without calling python? In this case you'd be right that you need to have "./" as part of the command call, but you still would have to add the shebang to manage.py and make it executable.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: