Oct 09

Custom setting in Satchmo

Adding custom settings to Satchmo shop.

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(
    description=_(u'Shipping and billing addreses are always equal.'),
    default = False)
# site/models.py
import config