zsoobhan / prometheus

Ziyad Soobhan's personal website
MIT License
0 stars 0 forks source link

500 on admin/logout #4

Closed zsoobhan closed 9 years ago

zsoobhan commented 9 years ago

Debug toolbar is breaking. It shouldn't even be included in prod.

ERROR 2015-04-20 17:03:16,550 base 19936 140681592334144 Internal Server Error: /admin/logout/
Traceback (most recent call last):
  File "/var/www/zsoobhan/prometheus/virtualenvs/prod/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 137, in get_response
    response = response.render()
  File "/var/www/zsoobhan/prometheus/virtualenvs/prod/local/lib/python2.7/site-packages/django/template/response.py", line 103, in render
    self.content = self.rendered_content
  File "/var/www/zsoobhan/prometheus/virtualenvs/prod/local/lib/python2.7/site-packages/django/template/response.py", line 79, in rendered_content
    context = self.resolve_context(self.context_data)
  File "/var/www/zsoobhan/prometheus/virtualenvs/prod/local/lib/python2.7/site-packages/django/template/response.py", line 156, in resolve_context
    return RequestContext(self._request, context, current_app=self._current_app)
  File "/var/www/zsoobhan/prometheus/virtualenvs/prod/local/lib/python2.7/site-packages/debug_toolbar/panels/templates/panel.py", line 57, in _request_context__init__
    updates.update(context)
TypeError: 'NoneType' object is not iterable