0
我最近开始从Jekyll(基于rails的框架)转到Django,我刚刚开始。_config.yml相当于Django
我想弄清楚什么相当于_config.yml(如果有的话)会在Django。对于那些在杰基尔没有背景,_config.yml看起来有点像这样:
# ----------------------- #
# Main Configs #
# ----------------------- #
markdown: rdiscount
pygments: true
permalink: /posts/:title
rdiscount:
extensions: [smart]
url: http://foo.bar
title: ./derp
subtitle: My code
author: Foo Bar
simple_search: http://google.com/search
description:
的这个功能是不是都写一遍又一遍的网页标题,网址,等...
谢谢!
事情是在_config.yml中,你可以像Twitter用户,g +帐户等这样的值,所以每当你必须改变Twitter帐户的名称,它只需要在一个地方改变。 的想法是: 叽叽喳喳:@foo G +:plus.google.com/foobar 那么你会用它打电话{{叽叽喳喳}}或{{G +}} – rcsole
@里卡德鞋底对于这种情况你定义您自己的模板上下文处理器 – mariodev
谢谢,我将在文档中查看它! – rcsole