old_contents: from __future__ import unicode_literals
  
  try:
  	from local import *
  except ImportError:
  	try:
  		from dev import *
  	except ImportError:
  		pass
  
  try:
  	DEBUG
  	TEMPLATE_DEBUG
  	DATABASES['default']
  	CELERY_BROKER
  except NameError:
  	raise NameError('Required config values not found. Abort !')
new_contents: from __future__ import unicode_literals, absolute_import
  
  try:
  	from .local import *
  except ImportError:
  	try:
  		from dev import *
  	except ImportError:
  		pass
  
  try:
  	DEBUG
  	TEMPLATE_DEBUG
  	DATABASES['default']
  	CELERY_BROKER
  except NameError:
  	raise NameError('Required config values not found. Abort !')
subject: Use absolute import to correctly import local.py config file