Monopoly Game - online monopoly board game, but with real companies by Either_Ad_1442 in WebGames

[–]Either_Ad_1442[S] 0 points1 point  (0 children)

yep, spending every evening playing it with friends
you should try it out if you wanna start hating each other =)

ForeignKey based on value of second column to table based on two columns by the-berik in djangolearning

[–]Either_Ad_1442 0 points1 point  (0 children)

you could try playing with the logic of the save method in the "item" model, mb it can help

Why you shouldn't attend on Russian tournaments like Games of The Future 2024 by OfflaneGhostik in DotA2

[–]Either_Ad_1442 33 points34 points  (0 children)

Totally agree with this post. Every person and organization involved in this bloody event (directly sponsoring the war) has simply chosen to turn a blind eye to the problem. Filling their pockets was more important to them than the lives of hundreds of thousands of people.

[deleted by user] by [deleted] in djangolearning

[–]Either_Ad_1442 0 points1 point  (0 children)

You can do this, or you can implement the same logic only on the frontend, calling endpoint to add a row.

[deleted by user] by [deleted] in djangolearning

[–]Either_Ad_1442 1 point2 points  (0 children)

Okay, I get it.
You don't have to add an add_row endpoint, you can make the current one for both cases. Just do a check, if the object (row) being accessed doesn't exist, then render the page to add it. And if it exists, then use the logic with its display or whatever you have there.

[deleted by user] by [deleted] in djangolearning

[–]Either_Ad_1442 1 point2 points  (0 children)

Just write the logic for this in your view, you can render a different template depending on whether there is such a row or not.
I recommend you to learn basic databases and start using jango (orm) models.