Django Book 翻译
菜单>:
TOC
返回
原文:
Note that the name of the view function doesnt matter; it doesnt have to be named in a certain way in order for Django to recognize it. Were calling it ``current_datetime`` here, because that name clearly indicates what it does, but it could just as well be named ``super_duper_awesome_current_time`` , or something equally revolting. Django doesnt care. The next section explains how Django finds this function.
翻译:
注意视图函数的名称并不重要;并不一定非得以某种特定的方式命名才能让 Django 识别它。此处,我们称之为 ``current_datetime`` ,只是因为该名字明确地指出了它的功能,而它也可以被命名为 ``super_duper_awesome_current_time`` 或者其它同样莫名其妙的名字。Django 并不关心其名字。下一节将解释 Django 如何查找该函数。
备注:
译者: