SettingNotSet error with Apache/mod_wsgi but not runserver

90 views
Skip to first unread message

Darren Hollenbeck

unread,
Nov 15, 2012, 7:15:16 PM11/15/12
to satchm...@googlegroups.com
I am trying to upgrade from django 1.3.1 to django 1.4.2, and think I'm mostly there, but having a problem.

I see the error when running under apache, but not manage.py runserver. I've even gone so far as to put debug trace into the code using runserver and the value is definitely in place.

What is apache missing in loading this stuff?


Traceback:
File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py" in get_response
  89.                     response = middleware_method(request)
File "/usr/lib/python2.6/site-packages/django/middleware/locale.py" in process_request
  21.         check_path = self.is_language_prefix_patterns_used()
File "/usr/lib/python2.6/site-packages/django/middleware/locale.py" in is_language_prefix_patterns_used
  54.         for url_pattern in get_resolver(None).url_patterns:
File "/usr/lib/python2.6/site-packages/django/core/urlresolvers.py" in url_patterns
  328.         patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/usr/lib/python2.6/site-packages/django/core/urlresolvers.py" in urlconf_module
  323.             self._urlconf_module = import_module(self.urlconf_name)
File "/usr/lib/python2.6/site-packages/django/utils/importlib.py" in import_module
  35.     __import__(name)
File "/home/docroots/liftoff-express/django/liftoff/urls.py" in <module>
  5. from liftoff.custom.urls import urlpatterns as myurls
File "/home/docroots/liftoff-express/django/liftoff/custom/urls.py" in <module>
  11. from satchmo_store.urls import urlpatterns as storepatterns
File "/usr/lib/python2.6/site-packages/Satchmo-0.9.3-py2.6.egg/satchmo_store/urls/__init__.py" in <module>
  27. from base import urlpatterns as basepatterns
File "/usr/lib/python2.6/site-packages/Satchmo-0.9.3-py2.6.egg/satchmo_store/urls/base.py" in <module>
  20. ) + prodpatterns + shippatterns + reportpatterns
File "/usr/lib/python2.6/site-packages/django/conf/urls/__init__.py" in include
  24.         urlconf_module = import_module(urlconf_module)
File "/usr/lib/python2.6/site-packages/django/utils/importlib.py" in import_module
  35.     __import__(name)
File "/usr/lib/python2.6/site-packages/Satchmo-0.9.3-py2.6.egg/satchmo_store/accounts/urls.py" in <module>
  36. verify = (config_value('SHOP', 'ACCOUNT_VERIFICATION') == 'EMAIL')
File "/usr/lib/python2.6/site-packages/livesettings/functions.py" in config_value
  204.         return config_get(group, key).value
File "/usr/lib/python2.6/site-packages/livesettings/values.py" in value
  371.         val = self._value()
File "/usr/lib/python2.6/site-packages/livesettings/values.py" in _value
  328.                     raise SettingNotSet("Startup error, couldn't load %s.%s" %(self.group.key, self.key))

Exception Type: SettingNotSet at /
Exception Value: ("Startup error, couldn't load SHOP.ACCOUNT_VERIFICATION", None)

Chris Moffitt

unread,
Nov 16, 2012, 1:02:49 AM11/16/12
to satchm...@googlegroups.com
Hmm. It could be some sort of startup dependency with the way Apache is starting up vs. the runserver. The quick fix is to comment it out and just set verify=True or False in the urls.py file.

I'm not sure how to troubleshoot the startup issue.

-Chris

--
You received this message because you are subscribed to the Google Groups "Satchmo users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/satchmo-users/-/jtr5BXXZDcwJ.
To post to this group, send email to satchm...@googlegroups.com.
To unsubscribe from this group, send email to satchmo-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en.

Reply all
Reply to author
Forward
0 new messages