Django:无法运行服务器 [英] Django : Unable to run server

查看:62
本文介绍了Django:无法运行服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Django的新手,这是我正在从事的第一个项目.我在执行runserver命令时出错.我正在使用Python 3.6.4.我在以前的帖子中还没有找到解决方案.这是我得到的错误:

I am new to Django and this is the first project Im working on. I have an error while executing the runserver command. Im working with Python 3.6.4. I havent found a solution in previous posts which were already very few. This is the error I get :

    File "C:\Users\Ines\Anaconda3\envs\DjangoApps\lib\socket.py", line 673, 
    in getfqdn
    hostname, aliases, ipaddrs = gethostbyaddr(name)
    UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe8 in position 2: 
    invalid continuation byte

PS:请不要要求我全部卸载并重新安装,因为我无济于事.

PS : Please dont ask me to uninstall all and reinstall because I did it several times in vain.

推荐答案

我的计算机名中只有一个ASCII字符.只需更改它即可.

I just had a none ASCII character in my computer name. Only had to change that.

感谢@Mark Chackerian

Thanks @Mark Chackerian

这篇关于Django:无法运行服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆