2019-03-27 15:49:14 +00:00
|
|
|
from django.apps import AppConfig
|
|
|
|
from django.utils.translation import gettext_lazy as _
|
2020-01-02 18:32:15 +00:00
|
|
|
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')
|
2020-01-02 18:32:15 +00:00
|
|
|
|
|
|
|
def ready(self):
|
2020-01-05 12:37:51 +00:00
|
|
|
# Need to load view models of all installed apps to make the
|
2020-01-02 18:32:15 +00:00
|
|
|
# register_view decorator work
|
|
|
|
autodiscover_modules('views')
|