cstar

eli's docs

   :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2013年10月2日

摘要: django 的 url 配置主要在 urls.py 中进行urlconfig 中对 url 的处理方式主要在:一 视图处理方式如 上文 例子所示:url(r'^blog/index/$', 'blog.views.index'),二 直接用方法名代表 url 处理方式:from django.conf.urls import patterns, include, urlfrom hi.views import index# Uncomment the next two lines to enable the admin:# from django.contri 阅读全文
posted @ 2013-10-02 21:51 exclm 阅读(683) 评论(0) 推荐(0) 编辑