django-simplecms/cms/apps.py

13 wiersze
414 B
Python
Czysty Zwykły widok Historia

2019-03-27 15:49:14 +00:00
from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
from django.utils.module_loading import autodiscover_modules
2019-03-27 15:49:14 +00:00
class CmsConfig(AppConfig):
name = 'cms'
verbose_name = _('Content Management System')
def ready(self):
# Need to load view models of all installed apps to make the
# register_view decorator work
autodiscover_modules('views')