文件更改时不重新加载Django页面

2024-10-05 12:24:28 发布

您现在位置:Python中文网/ 问答频道 /正文

我使用一个名为“Django livesync”https://github.com/fabiogibson/django-livesync的Django库 我现在在家工作(你知道,冠状病毒),在我的django项目中一切正常,但当我更改一些文件时,页面不会重新加载

在my settings.py中:

INSTALLED_APPS = [
    ...
    'django.contrib.messages',
    'livesync',
    'django.contrib.staticfiles',
    ...
]

MIDDLEWARE = [
    ...,
    'livesync.core.middleware.DjangoLiveSyncMiddleware'
]

DEBUG = True

当我检查chrome控制台时,我看到这个对象,所以一定有东西在工作:

enter image description here

你们有什么线索知道为什么在有变化的时候不重新加载页面吗


Tags: installed文件项目djangopyhttpsgithubcom

热门问题