21 lines
517 B
Python
21 lines
517 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from django.apps import AppConfig
|
|
from django.utils.translation import ugettext_lazy as _
|
|
from django.db.models.signals import post_migrate
|
|
|
|
|
|
class AdminInterfaceConfig(AppConfig):
|
|
|
|
name = 'admin_interface'
|
|
verbose_name = _('Admin Interface')
|
|
|
|
def ready(self):
|
|
|
|
from admin_interface import settings
|
|
from admin_interface.models import Theme
|
|
|
|
settings.check_installed_apps()
|
|
post_migrate.connect(
|
|
Theme.post_migrate_handler, sender=self)
|