Django Book 翻译
菜单>:
TOC
返回
原文:
``hours_ahead`` is very similar to the ``current_datetime`` view we wrote earlier, with a key difference: it takes an extra argument, the number of hours of offset. Add this to ``views.py`` :
翻译:
``hours_ahead`` 和我们以前写的 ``current_datetime`` 很象,关键的区别在于: 它多了一个额外参数,时间差。 ``views.py`` 修改如下:
备注:
译者: