Hello,
For a while I've been wondering if it is okay to put functionality in the views, things that I would think are suppose to go in the models but can't because of recursive includes. For instance. PlayerInstance.pickupItem(ItemInstance) makes more sense than writing the code in the view to actually "pick up an item", but if I'm required to import a model that imports the current model I'm adding functionality to, it's recursive and breaks. How can I accomplish the desired result without views? What am I doing wrong? Where can I find more information on this?
Thank you!
~ Paul. ~
Proper Use of Model, View, Controller in Django
Page 1 of 1|
|

New Topic/Question
Reply



MultiQuote


|