Skip to content

Instantly share code, notes, and snippets.

@maplethorpej
Last active August 15, 2016 14:55
Show Gist options
  • Save maplethorpej/ce9d7169f939bb7a3c1ebefc4ab8f44d to your computer and use it in GitHub Desktop.
Save maplethorpej/ce9d7169f939bb7a3c1ebefc4ab8f44d to your computer and use it in GitHub Desktop.
Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/arstechnica.com/posts/?f=json&metric=visitors&minutes=today&limit=15
Django Version: 1.9.8
Python Version: 2.7.10
Installed Applications:
['account',
'reports',
'analytics',
'dash_settings',
'search',
'shareable',
'dash_admin',
'abtests',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.admin',
'timezones',
'raven.contrib.django.raven_compat',
'django.contrib.staticfiles']
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'lib.parsely.views.UserInfoCacheMiddleware',
'lib.parsely.views.DBTimeoutHandlerMiddleware',
'lib.parsely.views.PartialWrapperMiddleware',
'lib.share_tokens.ShareTokenMiddleware')
Traceback:
File "/Users/maplethorpej/.pyenv/versions/dash/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
123. response = middleware_method(request)
File "/Users/maplethorpej/.pyenv/versions/dash/lib/python2.7/site-packages/django/middleware/common.py" in process_request
61. if self.should_redirect_with_slash(request):
File "/Users/maplethorpej/.pyenv/versions/dash/lib/python2.7/site-packages/django/middleware/common.py" in should_redirect_with_slash
79. not urlresolvers.is_valid_path(request.path_info, urlconf)
File "/Users/maplethorpej/.pyenv/versions/dash/lib/python2.7/site-packages/django/core/urlresolvers.py" in is_valid_path
668. resolve(path, urlconf)
File "/Users/maplethorpej/.pyenv/versions/dash/lib/python2.7/site-packages/django/core/urlresolvers.py" in resolve
534. return get_resolver(urlconf).resolve(path)
File "/Users/maplethorpej/.pyenv/versions/dash/lib/python2.7/site-packages/django/core/urlresolvers.py" in resolve
376. sub_match = pattern.resolve(new_path)
File "/Users/maplethorpej/.pyenv/versions/dash/lib/python2.7/site-packages/django/core/urlresolvers.py" in resolve
376. sub_match = pattern.resolve(new_path)
File "/Users/maplethorpej/.pyenv/versions/dash/lib/python2.7/site-packages/django/core/urlresolvers.py" in resolve
248. return ResolverMatch(self.callback, args, kwargs, self.name)
File "/Users/maplethorpej/.pyenv/versions/dash/lib/python2.7/site-packages/django/core/urlresolvers.py" in callback
255. self._callback = get_callable(self._callback_str)
File "/Users/maplethorpej/.pyenv/versions/dash/lib/python2.7/site-packages/django/utils/lru_cache.py" in wrapper
100. result = user_function(*args, **kwds)
File "/Users/maplethorpej/.pyenv/versions/dash/lib/python2.7/site-packages/django/core/urlresolvers.py" in get_callable
115. mod = import_module(mod_name)
File "/Users/maplethorpej/.pyenv/versions/2.7.10/lib/python2.7/importlib/__init__.py" in import_module
37. __import__(name)
File "/Users/maplethorpej/repos/dash/apps/analytics/views.py" in <module>
15. module = importlib.import_module("%s.%s" % (__package__, module_name))
File "/Users/maplethorpej/.pyenv/versions/2.7.10/lib/python2.7/importlib/__init__.py" in import_module
37. __import__(name)
File "/Users/maplethorpej/repos/dash/apps/analytics/post_info.py" in <module>
14. from lib import optimizely_utils
File "/Users/maplethorpej/repos/dash/lib/optimizely_utils.py" in <module>
6. import optimizely
Exception Type: ImportError at /arstechnica.com/posts/
Exception Value: No module named optimizely
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment