17👍
✅
Your python files would be associated to open with notepad. Change the behaviour to open with IDLE/python.
18👍
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: –
- right click any python file ending with the extension .py
- click on
properties
- In the
opens with
section, you should be able to seenotepad
. click on thechange
button next to this. - click “browse” and locate your python.exe executable, most probably in c:\pythonxx\ directory then click on “open” then “ok”
That should set you up, or you can always revert back for clarifications.
- You cannot add messages without installing django.contrib.messages.middleware.MessageMiddleware
- How can I make SSE with Python (Django)?
12👍
Another method: Instead of using django-admin.py write django-admin
django-admin startproject mysite
- How can I make SSE with Python (Django)?
- Changing password in Django Admin
- In python django how do you print out an object's introspection? The list of all public methods of that object (variable and/or functions)?
- How to upgrade Django on ubuntu?
- Python Django custom template tags register.assignment_tag not working
0👍
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
Source:stackexchange.com