We're also getting this same problem intermittently, with both filecache and memcache. We're using postgres as the database.
Corey, did you ever get to the bottom of this? Chris, can you offer any other suggestions? Regards, Rui On Aug 25, 3:40 pm, Corey Oordt <[email protected]> wrote: > I'm using memcache, but I tried locmem and file and got the same > response. > > -Corey > > On Aug 24, 2009, at 10:54 PM, Chris Moffitt wrote: > > > > > What cache back end are you using? My guess is that the cache isn't > > working right at that point in the load process. > > > You could try changing it to file or locmem just to see if it works. > > > -Chris > > > On Mon, Aug 24, 2009 at 3:31 PM, Corey Oordt <[email protected]> > > wrote: > > > Hey everyone, > > > I'm pulling my hair out at this. I'm getting an error that 'PRODUCT', > > 'CATEGORY_SLUG' is not set. > > > Environment: > > > Request Method: GET > > Request URL:https://store.washingtontimes.com/settings/ > > Django Version: 1.1 > > Python Version: 2.5.2 > > Installed Applications: > > ['django.contrib.auth', > > 'django.contrib.contenttypes', > > 'django.contrib.sessions', > > 'django.contrib.sites', > > 'django.contrib.admin', > > 'django.contrib.flatpages', > > 'django.contrib.humanize', > > 'django.contrib.redirects', > > 'django_ext', > > 'django_memcached', > > 'pagination', > > 'south', > > 'django_extensions', > > 'accounts', > > 'satchmo_store.shop', > > 'registration', > > 'keyedcache', > > 'livesettings', > > 'l10n', > > 'sorl.thumbnail', > > 'satchmo_store.contact', > > 'tax', > > 'tax.modules.no', > > 'tax.modules.area', > > 'tax.modules.percent', > > 'shipping', > > 'product', > > 'payment', > > 'payment.modules.giftcertificate', > > 'paypal_payflow_pro', > > 'satchmo_utils', > > 'app_plugins', > > 'satchmo_ext.recentlist', > > 'celery', > > 'newsworthy'] > > Installed Middleware: > > ('middleware.SecureMiddleware', > > 'django.middleware.cache.UpdateCacheMiddleware', > > 'django.middleware.common.CommonMiddleware', > > 'django.contrib.sessions.middleware.SessionMiddleware', > > 'django.contrib.auth.middleware.AuthenticationMiddleware', > > 'django.middleware.http.SetRemoteAddrFromForwardedFor', > > 'django.middleware.gzip.GZipMiddleware', > > 'django.middleware.http.ConditionalGetMiddleware', > > 'django.middleware.doc.XViewMiddleware', > > 'django.contrib.redirects.middleware.RedirectFallbackMiddleware', > > 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware', > > 'django.middleware.transaction.TransactionMiddleware', > > 'threaded_multihost.middleware.ThreadLocalMiddleware', > > 'pagination.middleware.PaginationMiddleware', > > 'django.middleware.cache.FetchFromCacheMiddleware') > > > Traceback: > > File "/home/webdev/.virtualenvs/twtstore/lib/python2.5/site-packages/ > > django/core/handlers/base.py" in get_response > > 83. request.path_info) > > File "/home/webdev/.virtualenvs/twtstore/lib/python2.5/site-packages/ > > django/core/urlresolvers.py" in resolve > > 216. for pattern in self.url_patterns: > > File "/home/webdev/.virtualenvs/twtstore/lib/python2.5/site-packages/ > > django/core/urlresolvers.py" in _get_url_patterns > > 245. patterns = getattr(self.urlconf_module, "urlpatterns", > > self.urlconf_module) > > File "/home/webdev/.virtualenvs/twtstore/lib/python2.5/site-packages/ > > django/core/urlresolvers.py" in _get_urlconf_module > > 240. self._urlconf_module = import_module > > (self.urlconf_name) > > File "/home/webdev/.virtualenvs/twtstore/lib/python2.5/site-packages/ > > django/utils/importlib.py" in import_module > > 35. __import__(name) > > File "/var/code/twtstore/urls.py" in <module> > > 7. from satchmo_store.urls import urlpatterns as satchmo_urls > > File "/home/webdev/.virtualenvs/twtstore/src/satchmo/satchmo/apps/ > > satchmo_store/urls/__init__.py" in <module> > > 28. from base import urlpatterns as basepatterns > > File "/home/webdev/.virtualenvs/twtstore/src/satchmo/satchmo/apps/ > > satchmo_store/urls/base.py" in <module> > > 8. from product.urls.base import adminpatterns as prodpatterns > > File "/home/webdev/.virtualenvs/twtstore/src/satchmo/satchmo/apps/ > > product/urls/__init__.py" in <module> > > 8. catbase = r'^' + config_value('PRODUCT','CATEGORY_SLUG') + '/' > > File "/home/webdev/.virtualenvs/twtstore/src/satchmo/satchmo/apps/ > > livesettings/functions.py" in config_value > > 205. return config_get(group, key).value > > File "/home/webdev/.virtualenvs/twtstore/src/satchmo/satchmo/apps/ > > livesettings/functions.py" in config_get > > 150. return ConfigurationSettings().get_config(group, key) > > File "/home/webdev/.virtualenvs/twtstore/src/satchmo/satchmo/apps/ > > livesettings/functions.py" in get_config > > 67. raise SettingNotSet('%s config group does > > not exist' % group) > > > Exception Type: SettingNotSet at /settings/ > > Exception Value: > > > However, if I go into the ./manage.py shell and > > > >>> from livesettings import config_value > > >>> config_value('PRODUCT', 'CATEGORY_SLUG') > > > It returns 'category' just fine. If I import the urls, it returns > > without an error. > > > Why does the shell work but the webserver not? > > > Thanks a bunch, > > > Corey Oordt --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
