避免硬编码网站信息

This commit is contained in:
virusdefender
2015-08-15 23:46:40 +08:00
parent a6bd787b86
commit 884d3ff980
2 changed files with 11 additions and 3 deletions

View File

@@ -0,0 +1,8 @@
# coding=utf-8
from django import template
register = template.Library()
@register.simple_tag
def show_website_info(name):
return {"website_name": "qduoj", "website_footer": u"青岛大学创新实验室"}[name]