Avoid conf error due to importing django before project settings.