404渲染

在templates下写一个404页面

然后debug改为False,

ALLOWED_HOSTS = ['*']

原文地址:https://www.cnblogs.com/tuifeideyouran/p/3826320.html