Thank you . I found the solution to my problem.I didn't use syncdb command
before applying foriegn key.

On Wed, Sep 30, 2015 at 9:43 PM, Gergely Polonkai <[email protected]>
wrote:

> Did you run your migrations?
> On 30 Sep 2015 15:35, "Bhanu Kathuria" <[email protected]> wrote:
>
>> Settings,admin and model file are attached.
>>
>> --
>> 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/c0e69bbe-9e7c-4642-ac2f-5092e7bd0d70%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/c0e69bbe-9e7c-4642-ac2f-5092e7bd0d70%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 a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/9ewmQ-5ef0k/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CACczBULQfHohtzLJKp-N%2B%3D%3DKv4f6V7whUPuBOgKXYbrfNBdGAw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CACczBULQfHohtzLJKp-N%2B%3D%3DKv4f6V7whUPuBOgKXYbrfNBdGAw%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 [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/CA%2BOBCFW0GPYrb348Uck_RR93vjd%3DCg0ZEdv7SQpLy9HG%2BLccRw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to