Google

Google App Engine中Django的customer template tags的使用

在GAE中使用Django的时候,自定义标签是不可避免的。

今天遇到这个问题的时候,按照Django的官方做法来做:

http://docs.djangoproject.com/en/dev/howto/custom-template-tags/

发现总是报错,告诉我<%load mytemplate%>找不到:

mytemplate is not a valid tag library: Could not load template library from django.templatetags.mytemplate, No module named mytemplate

所以就网上查询。最终找到了一下两篇文章:

Google Tips 1 - 同义词

同义词搜索:

使用英文搜索的时候,我们可能会遇到找不到合适的关键词来形容,这个功能就比较有用。
比如在搜索car的时候,我们可以在前面加上一个“~”来加以扩展,这样就会出现含有car同义词的关键字的网页,比如Auto, Vehicle之类的,实际搜索一下,居然还有BMW,呵呵。

聚合内容