I want to use the {{ post.title }} and {{ for post in object_list }} into my home template to show the latest 4 posts, I tried to import from blog.mod ...
I want to use the {{ post.title }} and {{ for post in object_list }} into my home template to show the latest 4 posts, I tried to import from blog.mod ...
I'm trying to render on my product show/index page what category a specific product belongs to. I don't know if I need to create a join table or if th ...
I have the following scenery. In the first page there are type of products, when choose specific type it sends to the page of products of the specific ...
Trying to import models from different app in views.py: Console raise an error: I checked a lot of information, but cant find what iam doing wr ...
My user model like this : My vendor model like this : If the relation run, there exist error like this : It seems that the error occurred bec ...
I am stuck with it and i couldn't find any appropriate solution for this. what i want to achieve is in my admin panel based upon check box value i wan ...
Is there any way to define a has_one style association between models where the association can be with an instance of one of two different models? In ...
I'm trying to set a default value on a field I added to my User model, but I'm having to do a lot of acrobativs to make it work. I want to add an 'id ...
I am creating a database that has two tables customer and seller and they are both inherited from user table that uses Django auth user. and my questi ...
I use Spyder with Anaconda. SpaCy is a standard module and installs just fine. But there is no standard way to add the models. Simply putting them in ...
I am making a model, where will represent a product but I want to add a field with complementary_products, that I want to make it a list of product. ...
How can I calculate the length of a list in one of the parameters of a model, and add that length to another parameter of that same model so that it c ...
I.e. we have SomeSeries with several SomeDecors, where ForeignKey of SomeDecor points to SomeSeries. I want both to be abstract and later instantiate ...
When I try to print a field (Many-to-Many)in the terminal I only get the result "None". Am I missing something? view.py models.py ...
Let me just start off by saying I'm VERY new to Laravel. I have a table for listbox items (truncated migration code below): Group is used for e.g ...
Hey guys I have a pretrained binary file and I want to train it on my corpus. Approach I tried : I tried to extract the txt file from the bin file ...
django models.py Task: how do we call field name from list? ...
I cannot get the image to show up in my HTML template. Right now it just displays a broken image. urls.py models.py profile.html Output: P ...
I want to add custom attribute in model. i put: And then in Controller: And i want to use xxxmodel->titulo in the view, but not appear this n ...
I have the following AlbumImage model which is for the images my users upload: ` ` and the model of people who might appear in the aforementioned ...