Django Book 翻译
菜单>:
TOC
返回
原文:
To find out, try running the Django development server and hitting a page such as ``http://127.0.0.1:8000/hello/`` or ``http://127.0.0.1:8000/does-not-exist/`` , or even ``http://127.0.0.1:8000/`` (the site root). You should see a Page not found message (see Figure 3-2). (Pretty, isnt it? We Django people sure do like our pastel colors.) Django displays this message because you requested a URL thats not defined in your URLconf.
翻译:
让我们试试看,运行Django开发服务器并访问类似 ``http://127.0.0.1:8000/hello/`` 或者 ``http://127.0.0.1:8000/does-not-exist/`` ,甚至 ``http://127.0.0.1:8000/`` (网站根目录)。你将会看到一个 “Page not found” 页面(图 3-2)。(挺漂亮的,是吧? 你会喜欢上我们的配色方案的;-) 如果请求的URL没有在URL配置里设置,Django就会显示这个页面。
备注:
译者: