mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-11-04 14:49:58 +08:00
自定义网站信息
This commit is contained in:
parent
07d6bddebb
commit
306c4ccce9
@ -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]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user