apps.py 541 B

12345678910111213141516171819
  1. from __future__ import unicode_literals
  2. from django import VERSION as DJANGO_VERSION
  3. from django.apps import AppConfig
  4. class CoreConfig(AppConfig):
  5. name = 'mezzanine.core'
  6. def ready(self):
  7. from . import checks # noqa
  8. if DJANGO_VERSION < (1, 9):
  9. # add_to_builtins was removed in 1.9 and replaced with a
  10. # documented public API configured by the TEMPLATES setting.
  11. from django.template.base import add_to_builtins
  12. add_to_builtins("mezzanine.template.loader_tags")