So I am new to Django and I am going through the tutorials. I tried
django-admin.py startproject mysite
and
python django-admin.py startproject mysite
but only a notepad popped up with the following:
#!C:\Python27\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
And still I cannot create the “mysite” directory. I already added the C:\Python27\Lib\site-packages\django\bin to my Path but no avail. What seems to be the problem? I am using Django 1.4.2, Python 2.7, and Windows Vista.
Regardless of the file association (since that is currently just a guess on my part) you could call the absolute path to run it:
That should create your project, and from there, you can just work from within the project directory.
You should make sure to add
C:\Python27\Scriptsto your PATH. You don’t need to add the bin of django.