when I use the Django shell, it shows an error; this is the error:
>>> from django.db import models >>> class Poll(models.Model): ... q
I ran into this problem using Eclipse, Django and PyDev. I needed to have the application (instead of some .py file for example) selected in the PyDev Package Explorer (left panel) before clicking Run for everything to work properly.