使用Bitnami DjangoStack创建项目?

时间:2023-01-17 11:23:38

I just installed the Bitnami DjangoStack and want to know how to create a new project in Windows.

我刚刚安装了Bitnami DjangoStack,想知道如何在Windows中创建一个新项目。

I tried opening the python.exe (similar to command prompt) and tried typing in:

我尝试打开python.exe(类似于命令提示符)并尝试输入:

django-admin.py startproject testproject which is what many articles seem to say to start with.

django-admin.py startproject testproject,这是很多文章似乎开始说的。

I am getting an invalid syntax error. Do I need to do something else? Eager to get started!

我收到无效的语法错误。我还需要做别的吗?渴望开始!

1 个解决方案

#1


1  

django-admin.py is a shell command, not a python statement. Issue it in a cmd window.

django-admin.py是一个shell命令,而不是python语句。在cmd窗口中发出它。

Make sure the path to django-admin.py is in your environment variables or in PYTHONPATH. Since this is a special DjangoStack distribution I guess it's in there.

确保django-admin.py的路径位于环境变量或PYTHONPATH中。由于这是一个特殊的DjangoStack发行版,我猜它就在那里。

#1


1  

django-admin.py is a shell command, not a python statement. Issue it in a cmd window.

django-admin.py是一个shell命令,而不是python语句。在cmd窗口中发出它。

Make sure the path to django-admin.py is in your environment variables or in PYTHONPATH. Since this is a special DjangoStack distribution I guess it's in there.

确保django-admin.py的路径位于环境变量或PYTHONPATH中。由于这是一个特殊的DjangoStack发行版,我猜它就在那里。