Skip to main content

Posts

Showing posts with the label many to many relationships in Django

Any type of package needs to install for using many to many relationships in Django

If you are doing work with Django then learn this post it is very usefully   Any type of package needs to install for using many to many relationships in Django     Here...Any type of package needs to install for using many to many relationships in Django           There are some excellent idea to help you make the new concepts, you are learning           as a beginner to Any type of package needs to           install for using many to many relationships in Django explain step by step here... =>Django application has a GM2MField that combines the features            of the standard Django “ManyToManyField” and “GenericForeignKey”.    =>Installation:  >> pip install django-gm2m =>Django’s contenttype framework must be         (django.contrib.contenttypes) mentionned         in the INSTALLED_APPS. INSTALLED_APPS = [    ...    'django.contrib.contenttypes',    ...    'gm2m', ] =>Uses Of django-gm2m:        1.reverse relations        2.prefetching        3