官网学习django
2017-05-02 22:24
190 查看
https://docs.djangoproject.com/en/1.11/intro/tutorial01/
根据上网站学习,第一个困难是无法显示polls success 的界面
显示为:
Using the URLconf defined in
^admin/
The current path,
You're seeing this error because you have
发现原因为mysite分为父目录和子目录,父目录里的urls.py写了,而执行的是子目录里的urls。
修改后成功出现界面:
Hello, world. You're at the polls index.
根据上网站学习,第一个困难是无法显示polls success 的界面
显示为:
Page not found (404)
Request Method: | GET |
---|---|
Request URL: | http://localhost:8000/polls |
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 = Truein 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.
相关文章推荐
- Django学习记录之Django 1.8 教程(我只是官网的搬运工)Tutorial Part 2
- Django学习记录之Django 1.8 教程(我只是官网的搬运工)Tutorial Part 1
- django官网手册学习 一
- Django学习笔记 官网教程纠正 代码
- 微软官网推Windows 7学习材料
- Windows python +django学习
- Django学习笔记一:安装配置
- [学习] Apache + mod_python + Django Step by Step
- [Django学习] 用户身份验证模块
- [django]学习Model API的实例
- django学习(一)
- django学习
- Python Web 开发 学习笔记1 安装配置 python+django
- django 学习
- python django学习-问题记录及解决方法
- django学习(一)
- Django学习中的一些小问题
- [Django学习] 用户身份验证模块
- django共同学习规划
- Django Form 学习