Accounting for modules deprecated in Django 1.6

Import statement compatible with Django 1.4 and older.