def ensure_alert_templates_are_available():
"""Inserts the ALERT_TEMPLATE_DIR into Django's TEMPLATE_DIRS list"""
from django.conf import settings
if ALERT_TEMPLATE_DIR not in settings.TEMPLATE_DIRS:
settings.TEMPLATE_DIRS += (ALERT_TEMPLATE_DIR,)
评论列表
文章目录