最新回答 / Corbie亞?wèn)|
(?P<name>pattern), name 可以理解為所要傳遞的參數(shù)的名稱,pattern代表所要匹配的模式。例如url(r'^articles/(?P<year>[0-9]{4})/(?P<month>[0-9]{2})/$',?views.month_archive),??那么year,month將會(huì)對(duì)應(yīng)views傳遞過(guò)來(lái)的year,month的值,而后面緊跟的則代表正則表達(dá)匹配的模式。
2016-09-25
。。。 python本來(lái)在Linux或者M(jìn)ac下就很爽啊···我喜歡
2016-09-09
TypeError: view must be a callable or a list/tuple in the case of include().
2016-09-06
已采納回答 / wangsha0
windows下,如果想省事,可以下載pycharm,里面直接可以新建django工程。如下:<...圖片...>如果在是cmd,下可以先使用pip install django命令,安裝成功后,會(huì)是如下:<...圖片...>這時(shí)就可以在cmd 命...
2016-09-02