摘要:
URL调试模式时的特例 1 from django.conf import settings 2 from django.conf.urls.defaults import * 3 from mysite import views 4 5 urlpatterns = patterns('', 6 (r'^$', views.homepage), 7 (r'^(\d{4})/([a-z]{3})/$', views.archive_month), 8 ) 9 10 if settings.DEBUG:11 urlpatterns += patter 阅读全文
posted @ 2012-10-29 15:53
zhu327
阅读(255)
评论(0)
推荐(0)

浙公网安备 33010602011771号