English 中文(简体)
贾尼戈- admin. py 启动项目 我的现场命令不起作用
原标题:django-admin.py startproject mysite command not working

我正试图使用对齐创建第一个工程, 但是在第一步本身就卡住了 。 当我给 < code> django- admin. py startproject my site command not working 命令时, 没有发生任何事件, 并且帮助获得相关信息 。 我设置了 < code> PYTHON_ HOME , < code> PATH 变量设置正确 。 我使用 python 2. 。

我的指令提示显示如下 :

C:ShekhardjangoWorld>c:Python27Scriptsdjango-admin.py startproject mysite
Usage: django-admin.py subcommand [options] [args]

Options:
  -v VERBOSITY, --verbosity=VERBOSITY
                        Verbosity level; 0=minimal output, 1=normal output,
                        2=verbose output, 3=very verbose output
  --settings=SETTINGS   The Python path to a settings module, e.g.
                        "myproject.settings.main". If this isn t provided, the
                        DJANGO_SETTINGS_MODULE environment variable will be
                        used.
  --pythonpath=PYTHONPATH
                        A directory to add to the Python path, e.g.
                        "/home/djangoprojects/myproject".
  --traceback           Print traceback on exception
  --version             show program s version number and exit
  -h, --help            show this help message and exit

Type  django-admin.py help <subcommand>  for help on a specific subcommand.

Available subcommands:

[django]
    cleanup
    compilemessages
    createcachetable
    dbshell
    diffsettings
    dumpdata
    flush
    inspectdb
    loaddata
    makemessages
    reset
    runfcgi

为什么贾尼戈不为我创造计划?

请救救我!

最佳回答

在 django- admin. py (或添加 python. exe 的完整路径) 之前添加 python 。

C:Shekhardjango World>python c:Python27Scriptsdjango-admin.py startproject my site

问题回答

你的决哥装置坏了 重新安装

在我的情况中,我在Windows 8上使用Canopy ,它对我的唯一有效方式是把python 命令也设置为django-admin.py的完整路径。 象这个例子“c:>python C:Users\AppDataLoblical Ensiderchoopy UserScriptsdjango-admin.py startproject”。

我也安装了冠状杆。 我把对角- admin 文件复制到我要安装第一个工程的目录中。 我打开了 python 命令的提示并输入了 :

Python jjango-admin.py 启动项目

多亏了那些发邮件的人 我才走上了正确的道路





相关问题
How to get two random records with Django

How do I get two distinct random records using Django? I ve seen questions about how to get one but I need to get two random records and they must differ.

Moving (very old) Zope/Plone Site to Django

I am ask to move data from a (now offline) site driven by Plone to a new Django site. These are the version informations I have: Zope Version (unreleased version, python 2.1.3 ) Python Version 2.1....

Can Django models use MySQL functions?

Is there a way to force Django models to pass a field to a MySQL function every time the model data is read or loaded? To clarify what I mean in SQL, I want the Django model to produce something like ...

Flexible pagination in Django

I d like to implement pagination such that I can allow the user to choose the number of records per page such as 10, 25, 50 etc. How should I go about this? Is there an app I can add onto my project ...

is it convenient to urlencode all next parameters? - django

While writing code, it is pretty common to request a page with an appended "next" query string argument. For instance, in the following template code next points back to the page the user is on: &...

Pragmatically adding give-aways/freebies to an online store

Our business currently has an online store and recently we ve been offering free specials to our customers. Right now, we simply display the special and give the buyer a notice stating we will add the ...

热门标签