Try to import Question from the shell.
python manage.py shell
>>from polls.models import Question
I guess you have a typo in the model that raises the import error. If it does
import in shell then you have some other issue
--
You received this message because you are subscribed to the Google G
Check the models.py file, you might have a typo in Question
On May 4, 2014 7:44 PM, "Tim Fong" 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(Questi
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
Except
3 matches
Mail list logo