由于autoreload,Django Runserver崩溃? [英] Django Runserver crashes due to autoreload?

查看:392
本文介绍了由于autoreload,Django Runserver崩溃?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我对Django很新。但是我的问题如下:
当我创建一个项目时,runserver通常不会启动。我键入:

  python manage.py runserver 

Powershell冻结了一段时间,并说:Python没有响应
键入时不会出现问题:

  python manage.py runserver --noreload 

我是使用Windows 10和Django 1.10.6以及Python 3.6
问题也已在djangoproject的论坛上报道,但没有提供任何解决方案。有没有什么办法解决这一问题?



将禁用autoreload影响使用Localhost?



谢谢。

解决方案

我刚刚开始遇到同样的错误。我不知道如何解决它,或什么原因,但运行与 - noreload 不会伤害任何东西。当您进行Python更改时,服务器不会重新加载,因此您必须自行重新启动服务器以测试更改。


so i'm very new to Django. But my problem is as follows: When I create a project, the runserver often won't start. I type:

python manage.py runserver

Powershell freezes for a while and says: "Python is not responding" The Problem does not appear when typing:

python manage.py runserver --noreload

I am using Windows 10 and Django 1.10.6 as well as Python 3.6 The problem has also been reported on the forum of djangoproject but there was no solution offered. Is there any way to fix this?

Will disableling autoreload affect working with the Localhost?

Thank you.

解决方案

I just started encountering this same bug tonight. I'm not sure how to fix it just yet or what causes it, but running with --noreload won't hurt anything. The server just won't reload when you make a Python change, so you'll have to restart the server yourself to test changes.

这篇关于由于autoreload,Django Runserver崩溃?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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