I have a mac and I am starting to work on django. When I try to make a project on the terminal by writing
python django-admin.py startproject myproject
python: can't open file 'django-admin.py': [Errno 2] No such file or directory
python /usr/local/bin/django-admin.py startproject myproject
You're confusing two ways of referring to an executable file.
/usr/local/bin is in your path, and
django-admin.py is marked as executable, so you can refer to it without the initial
django-admin.py startproject myproject
When you start with
python, that is saying "start Python with the script at this path". So, you need to pass the full path, if the script you're trying to start isn't in your current directory.