0

I'm using Vscode to build a Django project and I've been using the ./manage.py + command for weeks now. It's worked fine until recently, if I now enter ./manage.py runserver it opens the manage.py file and creates a runserver text file, but it does not run the server. Strangely enough the command works if written like so: python manage.py runserver. I thought that ./ was meant to be a shortcut for python in that command, have you encoutered that problem?

Have a nice day everyone!

  • 2
    `./` is a shortcut to refer to the current working directory as bash does not look for executables in the current working directory. If the file has the `+x` permission, and starts with a [`shebang`](https://stackoverflow.com/questions/6908143/should-i-put-shebang-in-python-scripts-and-what-form-should-it-take) it should work in a standard terminal – Aaron Apr 17 '22 at 16:21
  • It's weird, could you attach a screen short of your project structure and the terminal output? – Steven-MSFT Apr 18 '22 at 09:12

0 Answers0