<legend id='mE86C'><style id='mE86C'><dir id='mE86C'><q id='mE86C'></q></dir></style></legend>

      <small id='mE86C'></small><noframes id='mE86C'>

      <tfoot id='mE86C'></tfoot>
      <i id='mE86C'><tr id='mE86C'><dt id='mE86C'><q id='mE86C'><span id='mE86C'><b id='mE86C'><form id='mE86C'><ins id='mE86C'></ins><ul id='mE86C'></ul><sub id='mE86C'></sub></form><legend id='mE86C'></legend><bdo id='mE86C'><pre id='mE86C'><center id='mE86C'></center></pre></bdo></b><th id='mE86C'></th></span></q></dt></tr></i><div id='mE86C'><tfoot id='mE86C'></tfoot><dl id='mE86C'><fieldset id='mE86C'></fieldset></dl></div>

        <bdo id='mE86C'></bdo><ul id='mE86C'></ul>
    1. django-admin.py 不工作

      django-admin.py is not working(django-admin.py 不工作)
      • <tfoot id='cRMD6'></tfoot>
          <tbody id='cRMD6'></tbody>

              • <bdo id='cRMD6'></bdo><ul id='cRMD6'></ul>
                <i id='cRMD6'><tr id='cRMD6'><dt id='cRMD6'><q id='cRMD6'><span id='cRMD6'><b id='cRMD6'><form id='cRMD6'><ins id='cRMD6'></ins><ul id='cRMD6'></ul><sub id='cRMD6'></sub></form><legend id='cRMD6'></legend><bdo id='cRMD6'><pre id='cRMD6'><center id='cRMD6'></center></pre></bdo></b><th id='cRMD6'></th></span></q></dt></tr></i><div id='cRMD6'><tfoot id='cRMD6'></tfoot><dl id='cRMD6'><fieldset id='cRMD6'></fieldset></dl></div>
              • <small id='cRMD6'></small><noframes id='cRMD6'>

                <legend id='cRMD6'><style id='cRMD6'><dir id='cRMD6'><q id='cRMD6'></q></dir></style></legend>

              • 本文介绍了django-admin.py 不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我是 django 的新手,我一直在尝试建立一个项目,但没有成功.当我输入django-admin.py startproject mysite 我明白了.

                Am new to django and i have been trying to set up a project with no success. When i type django-admin.py startproject mysite i get this.

                C:UsersWASSWA SAMDocumentsdjangodjcode>django-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=all output
                

                等等……

                我已经将它添加到我的路径中

                I have added it to my path like so

                C:Python26Libsite-packagesdjangoin
                

                当我从交互模式导入 django 时,它运行良好.可能是什么问题呢.我正在使用 Windows 7 和 django 1.3.1.我使用 setup.py 安装了它.

                And when i import django from interactive mode it works perfectly. What could be the problem. I am using Windows 7 and django 1.3.1. I installed it using setup.py.

                推荐答案

                这是 Python 在 Windows 上安装的错误.如果你有 regkey 条目

                This is an error with Python's installation on Windows. If you have the regkey entry

                HKEY_CLASSES_ROOTpy_auto_fileshellcommandopen
                

                改变值

                "C:Python27python.exe" "%1"
                

                "C:Python27python.exe" "%1" %*
                

                (或您的等效安装位置)

                (Or your equivalent installation location)

                这确保命令行参数被传递到 python,而不是显式忽略.这已在最新安装的 Python 2.7 中得到修复.%*argv[]."%1" 是脚本的绝对路径.

                This ensures that command-line arguments are passed onto python, rather than explicitly ignored. This is fixed in the latest install of Python 2.7. %* is argv[]. "%1" is the script's absolute path.

                这篇关于django-admin.py 不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                What happens when you compare 2 pandas Series(当你比较 2 个 pandas 系列时会发生什么)
                Quickly find differences between two large text files(快速查找两个大文本文件之间的差异)
                Python - Compare 2 files and output differences(Python - 比较 2 个文件和输出差异)
                Why do comparisions between very large float values fail in python?(为什么在 python 中非常大的浮点值之间的比较会失败?)
                Dictionary merge by updating but not overwriting if value exists(字典通过更新合并,但如果值存在则不覆盖)
                Find entries of one text file in another file in python(在python中的另一个文件中查找一个文本文件的条目)

                    <bdo id='bkLky'></bdo><ul id='bkLky'></ul>

                      <small id='bkLky'></small><noframes id='bkLky'>

                          <i id='bkLky'><tr id='bkLky'><dt id='bkLky'><q id='bkLky'><span id='bkLky'><b id='bkLky'><form id='bkLky'><ins id='bkLky'></ins><ul id='bkLky'></ul><sub id='bkLky'></sub></form><legend id='bkLky'></legend><bdo id='bkLky'><pre id='bkLky'><center id='bkLky'></center></pre></bdo></b><th id='bkLky'></th></span></q></dt></tr></i><div id='bkLky'><tfoot id='bkLky'></tfoot><dl id='bkLky'><fieldset id='bkLky'></fieldset></dl></div>
                            <tbody id='bkLky'></tbody>
                        • <legend id='bkLky'><style id='bkLky'><dir id='bkLky'><q id='bkLky'></q></dir></style></legend>
                        • <tfoot id='bkLky'></tfoot>