Re: 'Question' object has no attribute 'choice_text'

2021-05-12 Thread UK Accounts
Hi Daniel, Thank you for getting back to me. Please find models as follows Need all_Questions and all_Choices to reflect for each other. I was reading MDN docs on django they recommend ManyToManyField. Please advise. Thank You Rishipal import datetime from django.db import models from djang

Re: Filtering OR-combined queries

2021-05-12 Thread Shaheed Haque
Just to close the loop on this, the defect in https://code.djangoproject.com/ticket/32717 is on its way to being resolved, but my original reason for using OR'd queries rather than Q() expressions was that I had not quite grokked the use of ~Q() to implement .exclude(). Simon kindly pointed out the

Attribute error

2021-05-12 Thread Peter Kirieny
can somebody help with this please, am building an ecommerce web and when i want to view my cart i get this error AttributeError: 'NoneType' object has no attribute 'price' here is my models.py class OrderItem(models.Model): product = models.ForeignKey(Product, on_delete=models.SET_NULL, null

Re: Folder structure for a Django project that has multi functional module.

2021-05-12 Thread Salima Begum
Thank you for your opinion. On Wed, 12 May 2021, 11:37 am Ammar Mohammed, wrote: > Separating every functional module is the right way ! > You should build your website on a base module using oop and structural > method. > > Good luck > > > On Wed, May 12, 2021, 06:43 Salima Begum > wrote: > >>