[Bug 193510] www/py-graphite-web: Stopped working after upgrade to Django 1.7
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Sep 10 07:00:16 UTC 2014
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193510
--- Comment #2 from Karli.Sjoberg at slu.se ---
First of all, had to change in "/usr/local/etc/graphite/graphite.wsgi":
-import django.core.handlers.wsgi
-application = django.core.handlers.wsgi.WSGIHandler()
+from django.core.wsgi import get_wsgi_application
+application = get_wsgi_application()
For Apache (and mod_wsgi) to start OK. But there seems to be tinkering to be
done to graphite as well:
https://github.com/caffeinehit/django-oauth2-provider/issues/77
Tried:
/usr/local/lib/python2.7/site-packages/graphite # for i in $(find . -type f
-exec egrep -H 'mimetype="[a-z]+\/[a-z]+"' {} \; | awk -F ':' '{print $1}'); do
sed -i '' 's#mimetype="#content_type="#' $i; done
But get only broken graph windows, sample attached. No direct errors in logs,
except for:
[Wed Sep 10 08:40:56 2014] [error] No handlers could be found for logger
"cache"
# pkg info | awk '/apache|django|graphite-web|wsgi/{print$1}'
ap22-mod_wsgi3-3.5
apache22-2.2.29
py27-django-1.7
py27-django-tagging-0.3.2
py27-graphite-web-0.9.12_1
uwsgi-2.0.7
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list