Thanks for your comment @Marcin. Turns out I had a file called location.py in my views.py folder, which was causing some kind of conflict. I renamed this file location_view.py and voila.
So the moral of this story, I think, is to check that you have no name conflicts in the application when you try to import the same application ..
source share