
from django.apps import AppConfig

from django.utils.module_loading import autodiscover_modules


class NapConfig(AppConfig):
    '''App Config that performs auto-discover on ready.'''

    def ready(self):
        super(NapConfig, self).ready()
        autodiscover_modules('publishers')


from django.apps import AppConfig

from django.utils.module_loading import autodiscover_modules


class NapConfig(AppConfig):
    '''App Config that performs auto-discover on ready.'''
    
    name = 'nap'

    def ready(self):
        super(NapConfig, self).ready()
        autodiscover_modules('publishers')

Fix to include mandatory name attribute
Fix to include mandatory name attribute
  
  from django.apps import AppConfig
  
  from django.utils.module_loading import autodiscover_modules
  
  
  class NapConfig(AppConfig):
      '''App Config that performs auto-discover on ready.'''
+     
+     name = 'nap'
  
      def ready(self):
          super(NapConfig, self).ready()
          autodiscover_modules('publishers')
  
Fix to include mandatory name attribute
## Code Before:

from django.apps import AppConfig

from django.utils.module_loading import autodiscover_modules


class NapConfig(AppConfig):
    '''App Config that performs auto-discover on ready.'''

    def ready(self):
        super(NapConfig, self).ready()
        autodiscover_modules('publishers')

## Instruction:
Fix to include mandatory name attribute
## Code After:

from django.apps import AppConfig

from django.utils.module_loading import autodiscover_modules


class NapConfig(AppConfig):
    '''App Config that performs auto-discover on ready.'''
    
    name = 'nap'

    def ready(self):
        super(NapConfig, self).ready()
        autodiscover_modules('publishers')
