Hi, Tests are regular Python code using Django. The code shouldn’t be different from what you write elsewhere. You’ll find some example about using foreign key by the end of the first tutorial page. In your case, it looks like you’ll need to create a user and add it to the model you are testing since they seem to be mandatory.
Regards, Xavier Ordoquy, Linovia. Le 22 nov. 2013 à 09:26, Harjot Mann <harjotmann1...@gmail.com> a écrit : > On Fri, Nov 22, 2013 at 1:47 PM, Xavier Ordoquy <xordo...@linovia.com> wrote: >> I feel like you are trying to get too fast into Django. >> It looks like you should take some time and read the Django’s documentation. >> It is written like a book and would give an accurate view of what’s going on. >> If things are still not clear after that, we’d be interested to hear from it >> and understand what didn’t go well so that we could improve the >> documentation. > > > I have read the documentation and doing according to it. But in > testing doucumentation, it is not given how to use the foreign key. > > -- > Harjot Kaur Mann > Blog: http://harjotmann.wordpress.com/ > Daily Dairy: http://harjotmann.wordpress.com/daily-diary/ > > -- > 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 http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAB0GQhBJLDmQTHt3JmjVE77vaWneF-tH6mijFdTLmez80ODL%2BA%40mail.gmail.com. > For more options, visit https://groups.google.com/groups/opt_out. -- 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 http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1D1177BB-070F-4E2B-BE4D-BC117D2D7928%40linovia.com. For more options, visit https://groups.google.com/groups/opt_out.