Yeah, the custom product is added.
SATCHMO_SETTINGS = {
'SHOP_BASE' : '/shop',
'MULTISHOP' : False,
'CUSTOM_PAYMENT_MODULES': ['xxx_payment.modules.authorizenet',],
'CUSTOM_PRODUCT_MODULES': ['xxx_product',]
}
The error I get is this:
livesettings.models.SettingNotSet: ('PRODUCT.PRODUCT_TYPES', None)
It occurs when I import the config in my models.py
The line that throws the error is:
PRODUCT_TYPES = config_get('PRODUCT', 'PRODUCT_TYPES')
I looked through the Satchmo source and it doesn't look like
PRODUCT_TYPES is defined anywhere.
If I create a ConfigurationGroup for Product and then register
PRODUCT_TYPES, the error goes away.
The documentation doesn't explain this, so I'm not sure if what I'm
doing is correct.
Chris, could you shine some light on this?
On Aug 11, 2:37 pm, lzantal <[email protected]> wrote:
> Hi,
>
> Did you added your custom product to SATCHMO_SETTINGS?
> I had to add my custom prodct to work properly.
> """
> SATCHMO_SETTINGS = {
> 'SHOP_BASE' : '',
> 'MULTISHOP' : False,
> 'CUSTOM_PRODUCT_MODULES': ['CProduct',],
> #'SSL' : True,
> #'CUSTOM_PAYMENT_MODULES': ['paybycheck',],
> #'PERSISTENT_CART': True,
> #'SHOP_URLS' : patterns('satchmo_store.shop.views',)}
>
> """
>
> Hope it helps
>
> lzantal
>
> On Aug 11, 6:58 am, Michael Dizon <[email protected]> wrote:
>
>
>
> > Any resolution to this?
>
> > On Jul 1, 4:55 pm, dvd <[email protected]> wrote:
>
> > > On 1 Lug, 02:55, Chris Moffitt <[email protected]> wrote:
>
> > > > Did you add your custom product to your installed apps settings?
>
> > > while reading the downloadable product source code I've found the
> > > "import config" line
> > > near the end of the models.py (docs doesn't mention that); I added the
> > > import but I obtain a nice
> > > traceback:
>
> > > Traceback (most recent call last):
> > > File "/home/dvd/Projects/django-dev/lib/python2.6/site-packages/
> > > django/core/management/commands/runserver.py", line 48, in inner_run
> > > self.validate(display_num_errors=True)
> > > File "/home/dvd/Projects/django-dev/lib/python2.6/site-packages/
> > > django/core/management/base.py", line 245, in validate
> > > num_errors = get_validation_errors(s, app)
> > > File "/home/dvd/Projects/django-dev/lib/python2.6/site-packages/
> > > django/core/management/validation.py", line 28, in
> > > get_validation_errors
> > > for (app_name, error) in get_app_errors().items():
> > > File "/home/dvd/Projects/django-dev/lib/python2.6/site-packages/
> > > django/db/models/loading.py", line 146, in get_app_errors
> > > self._populate()
> > > File "/home/dvd/Projects/django-dev/lib/python2.6/site-packages/
> > > django/db/models/loading.py", line 61, in _populate
> > > self.load_app(app_name, True)
> > > File "/home/dvd/Projects/django-dev/lib/python2.6/site-packages/
> > > django/db/models/loading.py", line 78, in load_app
> > > models = import_module('.models', app_name)
> > > File "/home/dvd/Projects/django-dev/lib/python2.6/site-packages/
> > > django/utils/importlib.py", line 35, in import_module
> > > __import__(name)
> > > File "/home/dvd/Projects/exlibris/bookrepublic/store/ex_satchmo/
> > > models.py", line 38, in <module>
> > > import config
> > > File "/home/dvd/Projects/exlibris/bookrepublic/store/ex_satchmo/
> > > config.py", line 6, in <module>
> > > PRODUCT_TYPES = config_get('PRODUCT', 'PRODUCT_TYPES')
> > > File "/home/dvd/Projects/django-dev/src/django-livesettings/
> > > livesettings/functions.py", line 149, in config_get
> > > return ConfigurationSettings().get_config(group, key)
> > > File "/home/dvd/Projects/django-dev/src/django-livesettings/
> > > livesettings/functions.py", line 71, in get_config
> > > raise SettingNotSet('%s.%s' % (group, key))
> > > livesettings.models.SettingNotSet: ('PRODUCT.PRODUCT_TYPES', None)
>
> > > any idea?
--
You received this message because you are subscribed to the Google Groups
"Satchmo users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/satchmo-users?hl=en.