I\'ve models.py as follows,
models.py
from django.contrib.auth.models import User from django.db import models from django.utils.encoding import python_2_
I ran into this issue when I wanted to use Django for Graphite. Turns out I had Django 1.3 installed and my Graphite version was breaking with Django > 1.5, so installing the latest version of the 1.4 branch fixed the problem:
sudo pip install --upgrade 'Django<1.5'