开发者

Django1.3 , Python2.7 django-admin.py is not working on windows

开发者 https://www.devze.com 2023-04-10 00:50 出处:网络
I installed Django1.3 on Windows 7 , i made sure i have Python2.7开发者_运维知识库 , Python2.7/Lib and Python2.7/lib/site-scripts/django/bin in my system PATH ...

I installed Django1.3 on Windows 7 , i made sure i have Python2.7开发者_运维知识库 , Python2.7/Lib and Python2.7/lib/site-scripts/django/bin in my system PATH ...

but, when i try to make django-admin.py creates a new project :

django-admin.py startproject exampleproject

it opens djangp-admin.py file in text-editor ..

same issue is happening when trying to run GAEFramework - GAE dev_appserver.py

gaeframework/google_appengine/dev_appserver.py

How i can solve this issue ... !

Regards


You have probably set up python files to be opened by text editor by default. I just tried installing django on windows and everything works fine


you just need to associate .py files with python. or run it explicitly:

python django-admin.py startproject exampleproject

0

精彩评论

暂无评论...
验证码 换一张
取 消