old_contents: #!/usr/bin/env python
  import sys
  
  import django
  from django.conf import settings
  
  
  if not settings.configured:
      settings.configure(
          DATABASES={
              'default': {
                  'ENGINE': 'django.db.backends.sqlite3',
                  'NAME': ':memory:',
              }
          },
          INSTALLED_APPS=(
              'sendgrid',
          ),
          SITE_ID=1,
          SECRET_KEY='this-is-just-for-tests-so-not-that-secret',
      )
  
  
  from django.test.utils import get_runner
  
  
  def run_tests():
      if hasattr(django, 'setup'):
          django.setup()
      apps = sys.argv[1:] or ['sendgrid', ]
      test_runner = get_runner(settings)
      test_runner = test_runner(verbosity=1, interactive=True, failfast=False)
      failures = test_runner.run_tests(apps)
      sys.exit(failures)
  
  
  if __name__ == '__main__':
      run_tests()
  
new_contents: #!/usr/bin/env python
  import sys
  
  import django
  from django.conf import settings
  
  
  if not settings.configured:
      settings.configure(
          DATABASES={
              'default': {
                  'ENGINE': 'django.db.backends.sqlite3',
                  'NAME': ':memory:',
              }
          },
          INSTALLED_APPS=(
              'django.contrib.contenttypes'
              'sendgrid',
          ),
          SITE_ID=1,
          SECRET_KEY='this-is-just-for-tests-so-not-that-secret',
      )
  
  
  from django.test.utils import get_runner
  
  
  def run_tests():
      if hasattr(django, 'setup'):
          django.setup()
      apps = sys.argv[1:] or ['sendgrid', ]
      test_runner = get_runner(settings)
      test_runner = test_runner(verbosity=1, interactive=True, failfast=False)
      failures = test_runner.run_tests(apps)
      sys.exit(failures)
  
  
  if __name__ == '__main__':
      run_tests()
  
subject: add content types to installed apps