I am new to Django and just trying to get it to start up. I downloaded it and it is on my path:
Ryans-MacBook-Pro:website ryansaxe$ python django-admin.py startproject mysite
python: cant open file 'django-admin.py': [Errno 2] No such file or directory
Ryans-MacBook-Pro:website ryansaxe$ python
Python 2.7.2 (default, Oct 11 2012, 20:14:37)
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>>
So as you can see, django is in the correct python, yet python cannot seem to find the right file.
I get the following if I do not type python before django-admin.py:
-bash: django-admin.py: command not found
There have been a lot of questions on this, many don't have accepted answers and I have tried out many of the solutions and none seem to be working.
What am I doing wrong?
You can view the set-up tutorial I am following here, and the problems with running it here
I am running Mac OS X 10.8
I am new to Django and just trying to get it to start up. I downloaded it and it is on my path:
Ryans-MacBook-Pro:website ryansaxe$ python django-admin.py startproject mysite
python: cant open file 'django-admin.py': [Errno 2] No such file or directory
Ryans-MacBook-Pro:website ryansaxe$ python
Python 2.7.2 (default, Oct 11 2012, 20:14:37)
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import django
>>>
So as you can see, django is in the correct python, yet python cannot seem to find the right file.
I get the following if I do not type python before django-admin.py:
-bash: django-admin.py: command not found
There have been a lot of questions on this, many don't have accepted answers and I have tried out many of the solutions and none seem to be working.
What am I doing wrong?
You can view the set-up tutorial I am following here, and the problems with running it here
I am running Mac OS X 10.8
0 commentaires:
Enregistrer un commentaire