怎么查看django 的url访问的log

慕娘9325324
浏览 807回答 1
1回答

慕码人2483693

最简单的形式from django.conf.urls import patterns, url urlpatterns = patterns('', url(r'^articles/2003/$', 'news.views.special_case_2003'), url(r'^articles/(\d{4})/$', 'news.views.year_archive'), url(r'^articles/(\d{4})/(\d{2})/$', 'news.views.month_archive'), url(r'^articles/(\d{4})/(\d{2})/(\d+)/$', 'news.views.article_detail'), )其中,正则表达式中组匹配出来的结果可以作为positional parameters传递给view.
打开App,查看更多内容
随时随地看视频慕课网APP