摘要:
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
阅读(721)
评论(0)
推荐(0)
浙公网安备 33010602011771号