首页 > 解决方案 > Django runserver 只显示空白页

问题描述

我目前正在尝试从https://github.com/fiduswriter/fiduswriter设置 Django Web 应用程序。

当我运行时,python manage.py runserver localhost:8000我没有收到任何错误。控制台的输出如下所示:

python manage.py runserver localhost:8000
Operations to perform:
  Apply all migrations: account, admin, auth, avatar, bibliography, contenttypes, document, feedback, flatpages, sessions, sites, socialaccount, style, user, usermedia
Running migrations:
  No migrations to apply.
Transpiling...
May 03, 2020 - 21:32:04
Django version 2.2.10, using settings None
Django tornado server is running at http://localhost:8000/
Quit the server with CONTROL-C.

访问 localhost:8000 时,没有页面出现。

但是,当我构建 Docker 映像时。从https://hub.docker.com/r/moritzf/fiduswriter/拉一个,我可以启动它,它会显示起始页面。

这种现象如何解释?

标签: pythondjangowebdjango-models

解决方案


推荐阅读