Hi,
you have indentation error , you must put (class Choice) under (class 
Question) like this

class Question(): 

class Choice():

so the error says "Question" not defined 
hope it helps

On Thursday, February 21, 2019 at 8:57:51 PM UTC+2, bhushan patil wrote:
>
> The code for models
>
> On Fri 22 Feb, 2019, 12:17 AM Clara Daia, <clara...@gmail.com 
> <javascript:>> wrote:
>
>> Could you show us the code for the models?
>>
>> Em qui, 21 de fev de 2019 às 15:42, bhushan patil <jayes...@gmail.com 
>> <javascript:>> escreveu:
>>
>>> I am trying to build my first app  in django but an error has occurred 
>>> starting 'Question is not defined'.can anyone help me with this.
>>>
>>> -- 
>>> 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 django-users...@googlegroups.com <javascript:>.
>>> To post to this group, send email to django...@googlegroups.com 
>>> <javascript:>.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/CAJ%3Ds-MyAsVK0ihGnxgdKcFBsxfFa1D-KiSOE4sxDp8gt-LuB9w%40mail.gmail.com
>>>  
>>> <https://groups.google.com/d/msgid/django-users/CAJ%3Ds-MyAsVK0ihGnxgdKcFBsxfFa1D-KiSOE4sxDp8gt-LuB9w%40mail.gmail.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 django-users...@googlegroups.com <javascript:>.
>> To post to this group, send email to django...@googlegroups.com 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAMpbhxysMR2b_H%3DRheA5bKSzFgz7YkyhvF%2BoHaFswNMj83HPmg%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/django-users/CAMpbhxysMR2b_H%3DRheA5bKSzFgz7YkyhvF%2BoHaFswNMj83HPmg%40mail.gmail.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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/42db1ce1-6a15-4a01-984f-362d11a77e14%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Re: Clara Daia
    • Re: amr aly

Reply via email to