ImportError instead of NameError for Django < 1.7
Merge pull request #15 from mauriziobit/master

ImportError instead of NameError for Django < 1.7