[Answered ]-Django: UnboundLocalError 26 December 2023 by thecoderscamp.com 2👍 Why do you have this? One is a method and another is a variable. cart_subtotal = cart_subtotal(request) 👤gladysbixly [Answered ]-Django Inheritance Issues Source:stackexchange.com