I was wondering how to set up a configuration file on my computer so that when I want to run manage.py for my django project I would be able to run “./manage.py” as opposed to “python manage.py”.
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you’re on Windows, you can already provided the file extension registration is correct (invoking
python.exerather thanpythonw.exe, I mean, or you won’t see the console output and it won’t wait for it to finish).On other operating systems, make
manage.pyexecutable withchmod +x manage.pyand then you can do./manage.py. It should have the#!/usr/bin/env pythonhashbang already which tells it what program to run it with.(This applies to everything, not just
manage.py– read about the shebang (Wikipedia) for more info.)