Custom setting in Satchmo
If you need to add some custom settings to Satchmo shop, create new app site (or custom or something else), create custom settings in config and include it in models:
# site/config.py
from satchmo.configuration import *
from django.utils.translation import ugettext_lazy as _
CUSTOM_SETTINGS = config_register(
BooleanValue(SHOP_GROUP,
'SHIPPING_AND_BILLING_ADDRESSES_EQUALS',
description=_(u'Shipping and billing addreses are always equal.'),
default = False)
)
# site/models.py import config
I am Bojan Mihelac and this blog is dedicated to share code, thoughts, tools and advices I came up with while working in