opnsense-ports/www/py-graphite-web/files/patch-conf__graphite.wsgi.example
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

14 lines
446 B
Text

--- 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()