官网学习django
来源:互联网 发布:手机版淘宝的新品上架 编辑:程序博客网 时间:2024/06/06 03:53
https://docs.djangoproject.com/en/1.11/intro/tutorial01/
根据上网站学习,第一个困难是无法显示polls success 的界面
显示为:
Page not found (404)
Using the URLconf defined in mysite.urls
, Django tried these URL patterns, in this order:
- ^admin/
The current path, polls
, didn't match any of these.
You're seeing this error because you have DEBUG = True
in your Django settings file. Change that to False
, and Django will display a standard 404 page.
发现原因为mysite分为父目录和子目录,父目录里的urls.py写了,而执行的是子目录里的urls。
修改后成功出现界面:
Hello, world. You're at the polls index.
0 0
- 官网学习django
- Django学习记录之Django 1.8 教程(我只是官网的搬运工)Tutorial Part 1
- Django学习记录之Django 1.8 教程(我只是官网的搬运工)Tutorial Part 2
- Django学习笔记 官网教程纠正 代码
- django学习
- 学习django
- Django 学习
- Django学习
- Django 学习
- django学习
- Django 学习
- django学习
- Django学习
- Django学习
- django学习
- Django学习
- Django学习
- django学习
- java编写service详细笔记
- Cocos study notes-Menu
- 打开一个Activity, 关闭之前所有的Activity.
- Tomcat7源码下载及导入eclipse
- 用AOP捕捉 Service中调用Dao的异常
- 官网学习django
- 51nod1344
- centos下彻底删除MYSQL 和重新安装MYSQL的解压缩版
- 【上机笔试之十七】A的B次方
- 位运算
- js事件冒泡
- 一天内学会的计算机技能
- PHP框架之CI:CodeIgniter
- Easy-7