Perhaps related to my other post [1], I was consistently getting "
Exception Value: global name 'OrderTaxDetail' is not defined" when POST-ing to the /store/checkout/ page. Unlike the other error, this was 100% reproducible.
On the production server, I have temporarily edited satchmo_store/shop/models.py to move OrderTaxDetail above the class definition for Order (whose '
force_recalculate_total()' method instantiates an OrderTaxDetail object), changing the FK field to "order = models.ForeignKey('Order', related_name="taxes")" so it lazy looks up the related Order model, now defined below. Voila! No more errors.
Now, I'm not ready to write this off as a Satchmo error since this same version of Satchmo works in my staging and local environments. But I'm at a loss as to what it is about my production environment that causes this to fail (staging is as identical to production as possible).
Any ideas?
[1]
https://groups.google.com/d/topic/satchmo-users/p-K21Ks4BbA/discussion[2]
http://dpaste.com/hold/294902/