我想开始一个新的django项目,我使用的是Windows 10。 如果我写入控制台
python -c "import django; print(django.get_version())"
返回
1.10.3
但如果我写
django-admin.py startproject mysite
它打开
...\appdata\local\programs\python\python35-32\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
我在环境变量中有路径: 程序\的Python \ Python35-32 \
我怎么做?
答案 0 :(得分:4)
django-admin是django中定义的命令。你应该打电话。
~/school-site# eb init
Select a default region
1) us-east-1 : US East (N. Virginia)
2) us-west-1 : US West (N. California)
3) us-west-2 : US West (Oregon)
4) eu-west-1 : EU (Ireland)
5) eu-central-1 : EU (Frankfurt)
6) ap-south-1 : Asia Pacific (Mumbai)
7) ap-southeast-1 : Asia Pacific (Singapore)
8) ap-southeast-2 : Asia Pacific (Sydney)
9) ap-northeast-1 : Asia Pacific (Tokyo)
10) ap-northeast-2 : Asia Pacific (Seoul)
11) sa-east-1 : South America (Sao Paulo)
12) cn-north-1 : China (Beijing)
13) us-east-2 : US East (Ohio)
14) ca-central-1 : Canada (Central)
15) eu-west-2 : EU (London)
(default is 3): 6
Select an application to use
1) school-site
2) [ Create new Application ]
(default is 1): 1
It appears you are using Python. Is this correct?
(y/n): y
Select a platform version.
1) Python 3.4
2) Python
3) Python 2.7
4) Python 3.4 (Preconfigured - Docker)
(default is 1): 3
Do you want to set up SSH for your instances?
(y/n): n
# eb --version
EB CLI 3.9.1 (Python 2.7.6)