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

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

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

        AttributeError:“设置"对象没有属性“ROOT_URLCONF"

        时间:2024-04-21
        <i id='Xi85o'><tr id='Xi85o'><dt id='Xi85o'><q id='Xi85o'><span id='Xi85o'><b id='Xi85o'><form id='Xi85o'><ins id='Xi85o'></ins><ul id='Xi85o'></ul><sub id='Xi85o'></sub></form><legend id='Xi85o'></legend><bdo id='Xi85o'><pre id='Xi85o'><center id='Xi85o'></center></pre></bdo></b><th id='Xi85o'></th></span></q></dt></tr></i><div id='Xi85o'><tfoot id='Xi85o'></tfoot><dl id='Xi85o'><fieldset id='Xi85o'></fieldset></dl></div>
          <tbody id='Xi85o'></tbody>

          <legend id='Xi85o'><style id='Xi85o'><dir id='Xi85o'><q id='Xi85o'></q></dir></style></legend>
          <tfoot id='Xi85o'></tfoot>

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

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

                1. 本文介绍了AttributeError:“设置"对象没有属性“ROOT_URLCONF"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  继我的上一个问题 错误:没有名为 psycopg2.extensions 的模块,我已将我的 mac OS 更新为 Mountain Lion 并安装了 Xcode.我还使用sudo port install py27-psycopg2"安装了 psycopg2.我现在正在尝试运行python manage.py runserver",但收到此错误

                  Following on from my last question Error: No module named psycopg2.extensions, I have updated my mac OS to Mountain Lion and installed Xcode. I have also installed psycopg2 using 'sudo port install py27-psycopg2'. I am now trying to run 'python manage.py runserver' but am receiving this error

                  AttributeError: 'Settings' object has no attribute 'ROOT_URLCONF'
                  

                  关于如何解决这个问题并让我的本地主机运行的任何帮助?

                  Any help on how to fix this and get my localhost running?

                  推荐答案

                  来自 django 文档:

                  From django docs:

                  Django 设置文件包含 Django 安装的所有配置.当你使用 Django 时,你必须告诉它你正在使用哪些设置.通过使用环境变量 DJANGO_SETTINGS_MODULE 来执行此操作.

                  A Django settings file contains all the configuration of your Django installation. When you use Django, you have to tell it which settings you're using. Do this by using an environment variable, DJANGO_SETTINGS_MODULE.

                  DJANGO_SETTINGS_MODULE 的值应该是 Python 路径语法,例如mysite.settings.请注意,设置模块应位于Python 导入搜索路径.

                  The value of DJANGO_SETTINGS_MODULE should be in Python path syntax, e.g. mysite.settings. Note that the settings module should be on the Python import search path.

                  ROOT_URLCONF

                  默认:未定义

                  代表根目录的完整 Python 导入路径的字符串网址配置.例如:mydjangoapps.urls".可以覆盖一个通过在传入的属性 urlconf 上设置每个请求的基础HttpRequest 对象.请参阅 Django 如何处理请求 了解详情.

                  A string representing the full Python import path to your root URLconf. For example: "mydjangoapps.urls". Can be overridden on a per-request basis by setting the attribute urlconf on the incoming HttpRequest object. See How Django processes a request for details.

                  这篇关于AttributeError:“设置"对象没有属性“ROOT_URLCONF"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:为什么 zeromq 在 localhost 上不起作用? 下一篇:如何通过 localhost 使用多播限制流量

                  相关文章

                    <legend id='4x1GN'><style id='4x1GN'><dir id='4x1GN'><q id='4x1GN'></q></dir></style></legend>
                      <tfoot id='4x1GN'></tfoot>

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

                      <small id='4x1GN'></small><noframes id='4x1GN'>

                        <bdo id='4x1GN'></bdo><ul id='4x1GN'></ul>