自定义网站信息
This commit is contained in:
1 parent
07d6bddebb
commit
306c4ccce9
1 file changed
+2
-1
@@ -1,8 +1,9 @@
|
|||||||
# coding=utf-8
|
# coding=utf-8
|
||||||
from django import template
|
from django import template
|
||||||
|
from django.conf import settings
|
||||||
register = template.Library()
|
register = template.Library()
|
||||||
|
|
||||||
|
|
||||||
@register.simple_tag
|
@register.simple_tag
|
||||||
def show_website_info(name):
|
def show_website_info(name):
|
||||||
return {"website_name": "qduoj", "website_footer": u"青岛大学信息工程学院 创新实验室"}[name]
|
return settings.WEBSITE_INFO[name]
|
||||||
Reference in new issue
Block a user