python - 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/拉一个,我可以启动它,它会显示起始页面。
这种现象如何解释?
解决方案
推荐阅读
- sql - 有条件地将值放入列中
- spring - 当 Spring @Bean 存储在 ThreadLocal 中时会发生什么?
- javascript - 单击带有输入的标签时只有一个事件
- google-cloud-platform - gcloud app deploy 在 Cloud SDK 版本 297.0.0 上崩溃并显示“无法为属性‘时区’赋值”
- javascript - 如何通过javascript删除html内容
- html - 有没有办法在所有浏览器中一致地将 div 包裹在文本输入/文本区域周围?
- c++ - Clang AST 仅查找语法错误
- python - 在嵌套字典内的嵌套列表中搜索键
- excel - 从excel中提取最后2个换行符
- javascript - jQuery用前缀和后缀替换子目录