<gh_stars>100-1000
"""Defines the application configuration for the source application"""
from __future__ import unicode_literals

from django.apps import AppConfig


class SourceConfig(AppConfig):
    """Configuration for the source app
    """
    name = 'source'
    label = 'source'
    verbose_name = 'Source'

    def ready(self):
        """
        Override this method in subclasses to run code when Django starts.
        """

        # Register source file parse saver
        from job.configuration.data.data_file import DATA_FILE_PARSE_SAVER
        from source.configuration.source_data_file import SourceDataFileParseSaver

        DATA_FILE_PARSE_SAVER['DATA_FILE_PARSE_SAVER'] = SourceDataFileParseSaver()

        # Register source message types
        from messaging.messages.factory import add_message_type
        from source.messages.purge_source_file import PurgeSourceFile

        add_message_type(PurgeSourceFile)

"""Defines the application configuration for the source application"""
from __future__ import unicode_literals

from django.apps import AppConfig


class SourceConfig(AppConfig):
    """Configuration for the source app
    """
    name = 'source'
    label = 'source'
    verbose_name = 'Source'

    def ready(self):
        """
        Override this method in subclasses to run code when Django starts.
        """

        # Register source file parse saver
        from job.configuration.data.data_file import DATA_FILE_PARSE_SAVER
        from source.configuration.source_data_file import SourceDataFileParseSaver

        DATA_FILE_PARSE_SAVER['DATA_FILE_PARSE_SAVER'] = SourceDataFileParseSaver()

        # Register source message types
        from messaging.messages.factory import add_message_type
        from source.messages.purge_source_file import PurgeSourceFile

        add_message_type(PurgeSourceFile)
Defines the application configuration for the source application Configuration for the source app Override this method in subclasses to run code when Django starts. # Register source file parse saver # Register source message types