Re: writing most common queries as model class method!

2022-11-12 Thread Chukwudi Onwusa
Write that method in your views, and return render(request,'templateName.html', optional) and go to your templates and call your desired or important attribute with the instance of the class using Django template tag {{class_instanceInMethodInsideView.modelsAtrributeName}} as many attribute as you

Re: dynamic formular

2022-11-12 Thread Clive Bruton
Try django-extra-views https://github.com/AndrewIngram/django-extra-views Hugely simplifies formsets On 10 Nov 2022, at 11:14, Arnold Falanga wrote: Hello can anyone help me to design a dynamic form with Django the idea is to have two parts in this form. a link to add the lines -- You rec

Re: Apps aren't loaded yet exception when trying to run migrate Django oscar

2022-11-12 Thread James
I fixed something similar once by having the model that was causing the problem be set to abstract in its class meta. O you need to "makemigrations user" if you've opened up the usermodel and changed a lot of stuff (also had that problem before) Hope these simple solutions work! On Friday,