For the primary key: https://docs.djangoproject.com/en/3.1/ref/models/fields/#primary-key
For the foreign key : https://docs.djangoproject.com/en/3.1/ref/models/fields/#django.db.models.ForeignKey
You can get these informations from the official Django doc.
在2020年10月29日星期四 UTC+8 上午2:43:02<kiran...@gmail.com> 写道:
Hi everyone,Iam stuck at a point ...I want to fetch a data from a database , where data should be insert manually , plz help me how to do that how to fire a queries in DB and how to use primary key and foreign key over here.Please help me ,Iam new to Django .Thanks in advance
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/04921889-ff29-44be-9863-4b1d64718413n%40googlegroups.com.
No comments:
Post a Comment