zoukankan      html  css  js  c++  java
  • 安装Django的小伙伴需要注意了,计算机名一定要是英文的哟

    执行Django项目的时候,我被这个难倒了,还好网友提醒了我


    Watching for file changes with StatReloader Performing system checks... System check identified no issues (0 silenced). You have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions. Run 'python manage.py migrate' to apply them. April 05, 2019 - 21:59:41 Django version 2.2, using settings 'yaradish.settings' Starting development server at http://127.0.0.1:8000/ Quit the server with CTRL-BREAK. Exception in thread Thread-1: Traceback (most recent call last): File "c:program files (x86)python37-32Lib hreading.py", line 917, in _bootstrap_inner self.run() File "c:program files (x86)python37-32Lib hreading.py", line 865, in run self._target(*self._args, **self._kwargs) File "E:pythondemo-yaradishlibsite-packagesdjangoutilsautoreload.py", line 54, in wrapper fn(*args, **kwargs) File "E:pythondemo-yaradishlibsite-packagesdjangocoremanagementcommands unserver.py", line 139, in inner_run ipv6=self.use_ipv6, threading=threading, server_cls=self.server_cls) File "E:pythondemo-yaradishlibsite-packagesdjangocoreserversasehttp.py", line 203, in run httpd = httpd_cls(server_address, WSGIRequestHandler, ipv6=ipv6) File "E:pythondemo-yaradishlibsite-packagesdjangocoreserversasehttp.py", line 67, in __init__ super().__init__(*args, **kwargs) File "c:program files (x86)python37-32Libsocketserver.py", line 452, in __init__ self.server_bind() File "c:program files (x86)python37-32Libwsgirefsimple_server.py", line 50, in server_bind HTTPServer.server_bind(self) File "c:program files (x86)python37-32Libhttpserver.py", line 139, in server_bind self.server_name = socket.getfqdn(host) File "c:program files (x86)python37-32Libsocket.py", line 676, in getfqdn hostname, aliases, ipaddrs = gethostbyaddr(name) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd1 in position 0: invalid continuation byte

    底下是什么utf-8编码,就是编码问题

    只需要把计算机名改成英文的就能解决

    原文参考:https://www.cnblogs.com/yaradish/p/10659975.html

  • 相关阅读:
    这是一段Java程序员写给最爱的老婆的代码。
    第一次来写博客,这里可以记录很多故事。
    转 JavaScript前端和Java后端的AES加密和解密
    java webservice浏览器测试地址
    Eclipse4.5在线安装Aptana插件及配置代码提示教程
    彻底的卸载干净oracle 11g(转)
    oracle查看编码以及修改编码(转)
    关于AngularJs数据递归呈现的实现的几种方式
    ionic的ngModel指令失效
    AngularJS 自定义指令详解
  • 原文地址:https://www.cnblogs.com/xiaonatuo/p/13856326.html
Copyright © 2011-2022 走看看