kopia lustrzana https://github.com/rtts/django-simplecms
13 wiersze
414 B
Python
13 wiersze
414 B
Python
from django.apps import AppConfig
|
|
from django.utils.translation import gettext_lazy as _
|
|
from django.utils.module_loading import autodiscover_modules
|
|
|
|
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')
|