Django Admin-“从应用程序收到的响应不完整” [英] Django Admin - "Incomplete response received from application"
问题描述
我最近开始了一个Django项目-当我转到管理页面时,收到从应用程序接收到不完整的响应消息。
I've recently started a Django project - When I go to the Admin page I get an "Incomplete Response Received from Application" message.
我只得到这个从我的A2托管域 www.educate-malawi.com 查看项目时出现错误。您可以访问主页右下角的管理页面。
I only get this error when viewing my project from my A2 hosting domain www.educate-malawi.com. You can access the admin page at the bottom right of the home page.
这对我的主机来说是个问题还是可以解决的问题?
Is this a problem for my host or is it something that I can fix?
我尝试寻找该问题的答案,但所有内容都提到Ruby on Rails-这不是Rails项目上的红宝石。
I've tried looking for answers to this problem but everything mentions Ruby on Rails - This is not a ruby on rails project.
如果您需要查看我的任何代码,请告诉我-我可以将其发布。
If you need to see any of my code let me know - I can post it.
推荐答案
使用主机,并且Django项目中的链接不在您的urls.py文件中或不正确时,会产生此错误。
This error is produced when using a Host and a link in your Django project is either not in your urls.py file or is incorrect.
对我来说,特别是我的href当urls.py预期为 www.educate-malawi.com/admin/时,链接到 www.educate-malawi.com/admin。
For me specifically my href linked to "www.educate-malawi.com/admin" when urls.py expected "www.educate-malawi.com/admin/"
对于错误的网址!
这篇关于Django Admin-“从应用程序收到的响应不完整”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!