Fixes for django imports