django之创建第7-1个项目-url配置高级
2016-04-05 01:31
651 查看
修改urls.PY文件
# -*- coding: UTF-8 -*- from django.conf.urls import patterns, include, url # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('blog.views', # Uncomment the admin/doc line below to enable admin documentation: url(r'^admin/doc/', include('django.contrib.admindocs.urls')), # Uncomment the next line to enable the admin: url(r'^admin/', include(admin.site.urls)), #url(r'^$', 'blog.views.index'), url(r'^blog/index/$', 'index'), url(r'^blog/time/$', 'time'), )
相关文章推荐
- django之创建第7个项目-url配置
- django之异常错误
- django之创建第6-1个项目-自定义过滤器
- 苹果Logo趣事:被咬一口竟只为不像樱桃
- 深圳市瑞云科技CIS设计分享第三期:LOGO标志设计结合
- go源码阅读笔记(math.4)
- django之创建第6个项目-过滤器
- 【Mongo】uploadify插件帮助实现批量上传
- django之创建第5个项目-条件语句
- django之创建第4-3个项目-访问list数据
- django之创建第4-2个项目-访问class类属性和类方法
- django之创建第4-1个项目-访问dict数据
- django之创建第4个项目编写第一个动态模板文件
- 再次自我黑客马拉松--不用第三方库实现一个基于golang的web service
- django之创建第3个项目:编写第一个模板文件
- SwipeRefreshLayout google自带下拉刷新
- 【VK Cup 2016 - Round 1 (Div 2 Edition)C】【构造】Bear and Forgotten Tree 3 构造一棵树直径为d且点1的深度为h
- django之创建第2个项目
- 如何从Google Play下载应用到电脑?
- UVa-10618 Tango Tango Insurrection&& UVa-1627 Team them up!