from django.apps import AppConfig


class EasyThumbnailsTestConfig(AppConfig):
    name = 'easy_thumbnails.tests'
    label = 'easy_thumbnails_tests'

try:
    from django.apps import AppConfig
except ImportError:
    # Early Django versions import everything in test, avoid the failure due to
    # AppConfig only existing in 1.7+
    AppConfig = object


class EasyThumbnailsTestConfig(AppConfig):
    name = 'easy_thumbnails.tests'
    label = 'easy_thumbnails_tests'

Fix an import error for old django versions
Fix an import error for old django versions

Fixes #371

+ try:
- from django.apps import AppConfig
+     from django.apps import AppConfig
+ except ImportError:
+     # Early Django versions import everything in test, avoid the failure due to
+     # AppConfig only existing in 1.7+
+     AppConfig = object
  
  
  class EasyThumbnailsTestConfig(AppConfig):
      name = 'easy_thumbnails.tests'
      label = 'easy_thumbnails_tests'
  
Fix an import error for old django versions
## Code Before:
from django.apps import AppConfig


class EasyThumbnailsTestConfig(AppConfig):
    name = 'easy_thumbnails.tests'
    label = 'easy_thumbnails_tests'

## Instruction:
Fix an import error for old django versions
## Code After:
try:
    from django.apps import AppConfig
except ImportError:
    # Early Django versions import everything in test, avoid the failure due to
    # AppConfig only existing in 1.7+
    AppConfig = object


class EasyThumbnailsTestConfig(AppConfig):
    name = 'easy_thumbnails.tests'
    label = 'easy_thumbnails_tests'
