apps.py 517 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
"""
Certificates Application Configuration

Signal handlers are connected here.
"""

from django.apps import AppConfig


class CertificatesConfig(AppConfig):
    """
    Application Configuration for Certificates.
    """
    name = u'certificates'

    def ready(self):
        """
        Connect handlers to signals.
        """
        # Can't import models at module level in AppConfigs, and models get
        # included from the signal handlers
        from . import signals  # pylint: disable=unused-variable