import sys

import django

from django.conf import settings

settings.configure(
    ROOT_URLCONF='',
    DATABASES={'default':
               {'ENGINE': 'django.db.backends.sqlite3',
                'NAME': 'test.db',
                }},
    PAYPAL_RECEIVER_EMAIL='',
    PAYPAL_IDENTITY_TOKEN='',
    INSTALLED_APPS=[
        'django.contrib.auth',
        'django.contrib.contenttypes',
        'paypal.pro',
        'paypal.standard',
        'paypal.standard.ipn',
        'paypal.standard.pdt',
    ] + (['south'] if django.VERSION < (1,7) else []),
    CACHES={
        'default': {
            'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
            'TIMEOUT': 0,
            'KEY_PREFIX': 'paypal_tests_',
        }
    },
    MIDDLEWARE_CLASSES=[],
)

from django.core.management import execute_from_command_line
if __name__ == '__main__':
    execute_from_command_line(sys.argv)

import sys

import django

from django.conf import settings

settings.configure(
    ROOT_URLCONF='',
    DATABASES={'default':
               {'ENGINE': 'django.db.backends.sqlite3',
                'NAME': 'test.db',
                }},
    PAYPAL_RECEIVER_EMAIL='',
    PAYPAL_IDENTITY_TOKEN='',
    INSTALLED_APPS=[
        'django.contrib.auth',
        'django.contrib.contenttypes',
        'paypal.pro',
        'paypal.standard',
        'paypal.standard.ipn',
        'paypal.standard.pdt',
    ],
    CACHES={
        'default': {
            'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
            'TIMEOUT': 0,
            'KEY_PREFIX': 'paypal_tests_',
        }
    },
    MIDDLEWARE_CLASSES=[],
)

from django.core.management import execute_from_command_line
if __name__ == '__main__':
    execute_from_command_line(sys.argv)

Remove stupid South thing that is messing up Heroku
Remove stupid South thing that is messing up Heroku

remove, I say!!
  import sys
  
  import django
  
  from django.conf import settings
  
  settings.configure(
      ROOT_URLCONF='',
      DATABASES={'default':
                 {'ENGINE': 'django.db.backends.sqlite3',
                  'NAME': 'test.db',
                  }},
      PAYPAL_RECEIVER_EMAIL='',
      PAYPAL_IDENTITY_TOKEN='',
      INSTALLED_APPS=[
          'django.contrib.auth',
          'django.contrib.contenttypes',
          'paypal.pro',
          'paypal.standard',
          'paypal.standard.ipn',
          'paypal.standard.pdt',
-     ] + (['south'] if django.VERSION < (1,7) else []),
+     ],
      CACHES={
          'default': {
              'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
              'TIMEOUT': 0,
              'KEY_PREFIX': 'paypal_tests_',
          }
      },
      MIDDLEWARE_CLASSES=[],
  )
  
  from django.core.management import execute_from_command_line
  if __name__ == '__main__':
      execute_from_command_line(sys.argv)
  
Remove stupid South thing that is messing up Heroku
## Code Before:
import sys

import django

from django.conf import settings

settings.configure(
    ROOT_URLCONF='',
    DATABASES={'default':
               {'ENGINE': 'django.db.backends.sqlite3',
                'NAME': 'test.db',
                }},
    PAYPAL_RECEIVER_EMAIL='',
    PAYPAL_IDENTITY_TOKEN='',
    INSTALLED_APPS=[
        'django.contrib.auth',
        'django.contrib.contenttypes',
        'paypal.pro',
        'paypal.standard',
        'paypal.standard.ipn',
        'paypal.standard.pdt',
    ] + (['south'] if django.VERSION < (1,7) else []),
    CACHES={
        'default': {
            'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
            'TIMEOUT': 0,
            'KEY_PREFIX': 'paypal_tests_',
        }
    },
    MIDDLEWARE_CLASSES=[],
)

from django.core.management import execute_from_command_line
if __name__ == '__main__':
    execute_from_command_line(sys.argv)

## Instruction:
Remove stupid South thing that is messing up Heroku
## Code After:
import sys

import django

from django.conf import settings

settings.configure(
    ROOT_URLCONF='',
    DATABASES={'default':
               {'ENGINE': 'django.db.backends.sqlite3',
                'NAME': 'test.db',
                }},
    PAYPAL_RECEIVER_EMAIL='',
    PAYPAL_IDENTITY_TOKEN='',
    INSTALLED_APPS=[
        'django.contrib.auth',
        'django.contrib.contenttypes',
        'paypal.pro',
        'paypal.standard',
        'paypal.standard.ipn',
        'paypal.standard.pdt',
    ],
    CACHES={
        'default': {
            'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
            'TIMEOUT': 0,
            'KEY_PREFIX': 'paypal_tests_',
        }
    },
    MIDDLEWARE_CLASSES=[],
)

from django.core.management import execute_from_command_line
if __name__ == '__main__':
    execute_from_command_line(sys.argv)
