import os
from django.conf import settings


DIRNAME = os.path.dirname(__file__)

INSTALLED_APPS = tuple(settings.INSTALLED_APPS) + (
    'modeltranslation.tests',
)
# IMO this is unimportant
#if django.VERSION[0] >= 1 and django.VERSION[1] >= 3:
    #INSTALLED_APPS += ('django.contrib.staticfiles',)

#STATIC_URL = '/static/'

MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(DIRNAME, 'media/')

LANGUAGES = (('de', 'Deutsch'),
             ('en', 'English'))
LANGUAGE_CODE = 'de'
MODELTRANSLATION_DEFAULT_LANGUAGE = 'de'

USE_I18N = True

MODELTRANSLATION_AUTO_POPULATE = False
MODELTRANSLATION_FALLBACK_LANGUAGES = ()

import os
from django.conf import settings


DIRNAME = os.path.dirname(__file__)

INSTALLED_APPS = tuple(settings.INSTALLED_APPS) + (
    'modeltranslation.tests',
)
# IMO this is unimportant
#if django.VERSION[0] >= 1 and django.VERSION[1] >= 3:
    #INSTALLED_APPS += ('django.contrib.staticfiles',)

#STATIC_URL = '/static/'

MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(DIRNAME, 'media/')

LANGUAGES = (('de', 'Deutsch'),
             ('en', 'English'))
LANGUAGE_CODE = 'de'
MODELTRANSLATION_DEFAULT_LANGUAGE = 'de'

USE_I18N = True
USE_TZ = False

MODELTRANSLATION_AUTO_POPULATE = False
MODELTRANSLATION_FALLBACK_LANGUAGES = ()

Disable timezone support for tests, as the date / time fields' tests use naive datatime objects and fail if it's enabled.
Disable timezone support for tests, as the date / time fields' tests use naive datatime objects and fail if it's enabled.

  import os
  from django.conf import settings
  
  
  DIRNAME = os.path.dirname(__file__)
  
  INSTALLED_APPS = tuple(settings.INSTALLED_APPS) + (
      'modeltranslation.tests',
  )
  # IMO this is unimportant
  #if django.VERSION[0] >= 1 and django.VERSION[1] >= 3:
      #INSTALLED_APPS += ('django.contrib.staticfiles',)
  
  #STATIC_URL = '/static/'
  
  MEDIA_URL = '/media/'
  MEDIA_ROOT = os.path.join(DIRNAME, 'media/')
  
  LANGUAGES = (('de', 'Deutsch'),
               ('en', 'English'))
  LANGUAGE_CODE = 'de'
  MODELTRANSLATION_DEFAULT_LANGUAGE = 'de'
  
  USE_I18N = True
+ USE_TZ = False
  
  MODELTRANSLATION_AUTO_POPULATE = False
  MODELTRANSLATION_FALLBACK_LANGUAGES = ()
  
Disable timezone support for tests, as the date / time fields' tests use naive datatime objects and fail if it's enabled.
## Code Before:
import os
from django.conf import settings


DIRNAME = os.path.dirname(__file__)

INSTALLED_APPS = tuple(settings.INSTALLED_APPS) + (
    'modeltranslation.tests',
)
# IMO this is unimportant
#if django.VERSION[0] >= 1 and django.VERSION[1] >= 3:
    #INSTALLED_APPS += ('django.contrib.staticfiles',)

#STATIC_URL = '/static/'

MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(DIRNAME, 'media/')

LANGUAGES = (('de', 'Deutsch'),
             ('en', 'English'))
LANGUAGE_CODE = 'de'
MODELTRANSLATION_DEFAULT_LANGUAGE = 'de'

USE_I18N = True

MODELTRANSLATION_AUTO_POPULATE = False
MODELTRANSLATION_FALLBACK_LANGUAGES = ()

## Instruction:
Disable timezone support for tests, as the date / time fields' tests use naive datatime objects and fail if it's enabled.
## Code After:
import os
from django.conf import settings


DIRNAME = os.path.dirname(__file__)

INSTALLED_APPS = tuple(settings.INSTALLED_APPS) + (
    'modeltranslation.tests',
)
# IMO this is unimportant
#if django.VERSION[0] >= 1 and django.VERSION[1] >= 3:
    #INSTALLED_APPS += ('django.contrib.staticfiles',)

#STATIC_URL = '/static/'

MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(DIRNAME, 'media/')

LANGUAGES = (('de', 'Deutsch'),
             ('en', 'English'))
LANGUAGE_CODE = 'de'
MODELTRANSLATION_DEFAULT_LANGUAGE = 'de'

USE_I18N = True
USE_TZ = False

MODELTRANSLATION_AUTO_POPULATE = False
MODELTRANSLATION_FALLBACK_LANGUAGES = ()
