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

        <bdo id='nCzUB'></bdo><ul id='nCzUB'></ul>
    1. <tfoot id='nCzUB'></tfoot>

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

      1. Unicodedecodeerror 与 runserver

        Unicodedecodeerror with runserver(Unicodedecodeerror 与 runserver)
          <tfoot id='zfpCS'></tfoot>

            <tbody id='zfpCS'></tbody>

          1. <small id='zfpCS'></small><noframes id='zfpCS'>

              • <bdo id='zfpCS'></bdo><ul id='zfpCS'></ul>

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

                  <legend id='zfpCS'><style id='zfpCS'><dir id='zfpCS'><q id='zfpCS'></q></dir></style></legend>
                • 本文介绍了Unicodedecodeerror 与 runserver的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  After setting up all what django requires, I tried the runserver command and I caught an error:

                  UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcf in position 8: invalid continuation byte

                  From:

                  c:sue>python manage.py runserver
                  Validating models...
                  
                  0 errors found
                  April 16, 2014 - 15:02:42
                  Django version 1.6.2, using settings 'sue.settings'
                  Starting development server at http://127.0.0.1:8000/
                  Quit the server with CTRL-BREAK.
                  Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x0000000003890048>
                  Traceback (most recent call last):
                    File "C:python34libsite-packagesdjangoutilsautoreload.py", line 93, in wrapper fn(*args, **kwargs)
                    File "C:python34libsite-packagesdjangocoremanagementcommands
                  unserver.py", line 127, in inner_run ipv6=self.use_ipv6, threading=threading)
                    File "C:python34libsite-packagesdjangocoreserversasehttp.py", line 167, in run httpd = httpd_cls(server_address, WSGIRequestHandler, ipv6=ipv6)
                    File "C:python34libsite-packagesdjangocoreserversasehttp.py", line 109, in __init__ super(WSGIServer, self).__init__(*args, **kwargs)
                    File "C:python34libsocketserver.py", line 430, in __init__ self.server_bind()
                    File "C:python34libsite-packagesdjangocoreserversasehttp.py", line 113, in server_bind super(WSGIServer, self).server_bind()
                    File "C:python34libwsgirefsimple_server.py", line 50, in server_bind HTTPServer.server_bind(self)
                    File "C:python34libhttpserver.py", line 137, in server_bind
                      self.server_name = socket.getfqdn(host)
                    File "C:python34libsocket.py", line 460, in getfqdn
                      hostname, aliases, ipaddrs = gethostbyaddr(name)
                  UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcf in position 8: invalid continuation byte
                  

                  I am using Windows 7 x64, python 3.4 and django 1.6.2. What does this error mean?

                  解决方案

                  This sounds like this Python issue. If your computer name has non-ASCII characters this will fail. You may:

                  1. Issue the runserver command with explicit host and port: python manage.py runserver 127.0.0.1:8000
                  2. Change your computer name to a string that only contains ASCII characters.

                  这篇关于Unicodedecodeerror 与 runserver的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Split a Pandas column of lists into multiple columns(将 Pandas 的列表列拆分为多列)
                  How does the @property decorator work in Python?(@property 装饰器在 Python 中是如何工作的?)
                  What is the difference between old style and new style classes in Python?(Python中的旧样式类和新样式类有什么区别?)
                  How to break out of multiple loops?(如何打破多个循环?)
                  How to put the legend out of the plot(如何将传说从情节中剔除)
                  Why is the output of my function printing out quot;Nonequot;?(为什么我的函数输出打印出“无?)

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

                          <tbody id='PcIcB'></tbody>

                          1. <small id='PcIcB'></small><noframes id='PcIcB'>

                          2. <tfoot id='PcIcB'></tfoot>