Reputation: 4375
Hey, so basically when I try to django-admin.py startproject mysite my notepad with django-admin.py file opens up instead of creating a new actual projects. I'm on windows and just yesterday I created the project and everything was fine.
Upvotes: 19
Views: 7611
Reputation: 4473
Another method: Instead of using django-admin.py write django-admin
django-admin startproject mysite
Upvotes: 12
Reputation: 321
When faced with an issue of django-admin.py opening in an editor
I did this
Select python file and right click and set default open with python console for windows Problem will be solved automatically
Upvotes: 0
Reputation: 6981
Instead of django-admin.py startproject mysite
try python django-admin.py startproject mysite
That should work, but...
...you will need to do something more if you want django-admin.py startproject mysite
to work without adding python
at the start: -
properties
opens with
section, you should be able to see notepad
. click on the change
button next to this.That should set you up, or you can always revert back for clarifications.
Upvotes: 18
Reputation: 1061
Your python files would be associated to open with notepad. Change the behaviour to open with IDLE/python.
Upvotes: 17