瀏覽代碼

Blog current year

pull/2/head
Noah Petherbridge 6 年之前
父節點
當前提交
447711e995
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      rophako/settings.py

+ 3
- 0
rophako/settings.py 查看文件

@@ -29,6 +29,9 @@ class ConfigHandler(object):
basedir=basedir
)
self.photo.root_private = self.photo.root_private.format(basedir=basedir)
self.blog.copyright = self.blog.copyright.format(
year=datetime.datetime.utcnow().strftime("%Y")
)

def print_settings(self):
"""Pretty-print the contents of the configuration."""


Loading…
取消
儲存