title: Django Elastic Beanstalk Deployment Error Due to INSTALLED_APPS in Settings
body: <p>I'm deploying a Django application through the Elastic Beanstalk CLI but have an error with an app I include in the INSTALLED_APPS in the settings.py file. Here's the layout of my django project:</p>
  <pre><code>django3 
       |--- manage.py
       |--- requirements.txt
       |--- .ebextensions
             |--- 01_python.config
       |--- appone
             |--- migrations
                   |--- __init__.py
             |--- templates
                   |--- index.html
             |--- __init__.py
             |--- admin.py
             |--- apps.py
             |--- forms.py
             |--- models.py
             |--- tests.py
             |--- urls.py
             |--- views.py
      |--- django3
             |--- __init__.py
             |--- asgi.py
             |--- settings.py
             |--- urls.py
             |--- wsgi.py
  </code></pre>
  <p>When I run the django project locally everything works fine, but when I attempt to deploy to Elastic Beanstalk I get this error:</p>
  <pre><code>ModuleNotFoundError: No module named 'appone'
  </code></pre>
  <p>This is preceded in the logs at some point with these lines:</p>
  <pre><code>apps.populate(settings.INSTALLED_APPS)
  app_config = AppConfig.create(entry)
  </code></pre>
  <p>so it seems it's attempting to make an entry for the appone app but the name for it in the apps.py I have is incorrect. My apps.py file is this:</p>
  <pre><code>from django.apps import AppConfig
  
  
  class ApponeConfig(AppConfig):
      #default_auto_field = 'django.db.models.BigAutoField'
      name = 'appone'
  </code></pre>
  <p>And my settings.py file INSTALLED_APPS is this:</p>
  <pre><code>INSTALLED_APPS = [
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'appone'
  ]
  </code></pre>
  <p>I found some similar issues like this one:
  <a href="https://stackoverflow.com/questions/46177499/django-cant-import-module-check-that-module-appconfig-name-is-correct">Django : Can&#39;t import &#39;module&#39;. Check that module AppConfig.name is correct</a>
  but none of the suggested answers work for me (switching name = 'appone' to  name = 'django3.appone' in the apps.py file causes both my local version and the elastic beanstalk deployment to fail).</p>