error tracker does not work with django 1.5
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Errors |
Fix Released
|
High
|
Brian Murray |
Bug Description
The ubuntu error tracker is currently configured to use python-django version 1.3 and fails to run with version 1.5.4 (available in the ubuntu-cloud archive). There are multiple issues:
This traceback (https:/
PYTHONPATH=
This is resolvable by setting the following environmental variable:
DJANGO_
However, then when trying to run python-django 1.5 the following traceback appears;
File "/usr/lib/
response = middleware_
File "/usr/lib/
host = request.get_host()
File "/usr/lib/
"Invalid HTTP_HOST header (you may need to set ALLOWED_HOSTS): %s" % host)
That was resolvable by setting ALLOWED_HOSTS (in settings.py) to ['errors.
After that there was another traceback:
E__init__() got an unexpected keyword argument 'namedtuple_
File "/usr/lib/
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/
return view_func(*args, **kwargs)
File "/usr/lib/
return self._handle_
File "/srv/errors.
return Resource.
File "/usr/lib/
return self.error_
File "/usr/lib/
serialized = self.serialize(
File "/usr/lib/
return self._meta.
File "/usr/lib/
serialized = getattr(self, "to_%s" % desired_
File "/srv/errors.
sort_keys=True, ensure_ascii=False, indent=
File "/usr/lib/
**kw)
I'm not certain how to sort that one out.
Related branches
Changed in errors: | |
status: | Triaged → Fix Committed |
assignee: | nobody → Brian Murray (brian-murray) |
Changed in errors: | |
status: | Fix Committed → Fix Released |
Oh, and python-tastypie had to be upgrade to version 0.9.15-1 because of the movement of LOOKUPL_SEP - see tastypie/ resources. py:
# Django 1.5 has moved this constant up one level. db.models. constants import LOOKUP_SEP db.models. sql.constants import LOOKUP_SEP
try:
from django.
except ImportError:
from django.