From c8031363ae109f711e28caed42e692ac90dd2c7b Mon Sep 17 00:00:00 2001 From: Steve Wills Date: Sun, 14 Sep 2014 03:58:14 +0000 Subject: www/py-graphite-web: add patches to make graphite work with django 1.7 While here, pet portlint and improve pkg-message a bit Reported by: brd --- www/py-graphite-web/files/patch-conf__graphite.wsgi.example | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'www/py-graphite-web/files/patch-conf__graphite.wsgi.example') diff --git a/www/py-graphite-web/files/patch-conf__graphite.wsgi.example b/www/py-graphite-web/files/patch-conf__graphite.wsgi.example index 6bcac678d6ae..6ddea150fd81 100644 --- a/www/py-graphite-web/files/patch-conf__graphite.wsgi.example +++ b/www/py-graphite-web/files/patch-conf__graphite.wsgi.example @@ -1,9 +1,14 @@ ---- ./conf/graphite.wsgi.example.orig 2013-08-21 17:11:04.000000000 +0000 -+++ ./conf/graphite.wsgi.example 2014-02-12 20:50:27.343398788 +0000 -@@ -1,5 +1,5 @@ +--- conf/graphite.wsgi.example.orig 2013-08-21 17:11:04.000000000 +0000 ++++ conf/graphite.wsgi.example 2014-09-14 03:30:45.456594225 +0000 +@@ -1,8 +1,10 @@ import os, sys -sys.path.append('/opt/graphite/webapp') +sys.path.append('%%PREFIX%%/graphite/webapp') os.environ['DJANGO_SETTINGS_MODULE'] = 'graphite.settings' ++import django import django.core.handlers.wsgi ++django.setup() + + application = django.core.handlers.wsgi.WSGIHandler() + -- cgit v1.2.3