Jan Dittberner
c9a9fa11b2
This commit isolates the celery task invocations of the userdbs app into signal handlers. All celery interaction is now asynchronously handled in userdbs.signals.
26 lines
594 B
Python
26 lines
594 B
Python
"""
|
|
This module contains the :py:class:`django.apps.AppConfig` instance for the
|
|
:py:mod:`userdbs` app.
|
|
|
|
"""
|
|
from __future__ import unicode_literals
|
|
|
|
from django.apps import AppConfig
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
|
|
class UserdbsAppConfig(AppConfig):
|
|
"""
|
|
AppConfig for the :py:mod:`userdbs` app.
|
|
|
|
"""
|
|
name = 'userdbs'
|
|
verbose_name = _('Database Users and their Databases')
|
|
|
|
def ready(self):
|
|
"""
|
|
Takes care of importing the signal handlers of the :py:mod:`userdbs`
|
|
app.
|
|
|
|
"""
|
|
import userdbs.signals # NOQA
|