diff --git a/utils/templatetags/website_info.py b/utils/templatetags/website_info.py index 85b6c237..98c19ea1 100644 --- a/utils/templatetags/website_info.py +++ b/utils/templatetags/website_info.py @@ -1,8 +1,9 @@ # coding=utf-8 from django import template +from django.conf import settings register = template.Library() @register.simple_tag def show_website_info(name): - return {"website_name": "qduoj", "website_footer": u"青岛大学信息工程学院 创新实验室"}[name] + return settings.WEBSITE_INFO[name]