Check the models.py file, you might have a typo in Question On May 4, 2014 7:44 PM, "Tim Fong" <[email protected]> wrote:
> Hi, > Here's my code: > >> from django.contrib import admin >> # Register your models here >> from django.contrib import admin >> from polls.models import Question >> admin.site.register(Question) > > > When I try to hit the admin page now, I get an error, > "Exception Value: > cannot import name Question > Exception Location: /home/pi/mysite/polls/admin.py in <module>, line 5" > > What am I doing wrong here? > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/42d819a1-88f3-4e91-9259-075661f6e2bd%40googlegroups.com<https://groups.google.com/d/msgid/django-users/42d819a1-88f3-4e91-9259-075661f6e2bd%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAAeX05F4wTCMypEZ%2BKMKDPMe%2BC7J8oL%2Bs6jZHwYcopeOzUzs3g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

