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 !')
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 !')
Use absolute import to correctly import local.py config file
Use absolute import to correctly import local.py config file
